[Checkins] SVN: zc.buildout/branches/help-api/ - Of course, it only makes sense to run this test if os.symlink exists.

Godefroid Chapelle gotcha at bubblenet.be
Sun Mar 29 17:24:45 EDT 2009


Log message for revision 98535:
  
  - Of course, it only makes sense to run this test if os.symlink exists.
    Also, add an entry to CHANGES.txt

Changed:
  U   zc.buildout/branches/help-api/CHANGES.txt
  U   zc.buildout/branches/help-api/src/zc/buildout/tests.py

-=-
Modified: zc.buildout/branches/help-api/CHANGES.txt
===================================================================
--- zc.buildout/branches/help-api/CHANGES.txt	2009-03-29 21:24:38 UTC (rev 98534)
+++ zc.buildout/branches/help-api/CHANGES.txt	2009-03-29 21:24:45 UTC (rev 98535)
@@ -4,6 +4,12 @@
 Change History
 **************
 
+1.1.2 (Unreleased)
+==================
+
+- Fixed a bug that would cause buildout to break while computing a
+  directory hash if it found a broken symlink (Launchpad #250573)
+
 1.1.1 (2008-07-28)
 ==================
 

Modified: zc.buildout/branches/help-api/src/zc/buildout/tests.py
===================================================================
--- zc.buildout/branches/help-api/src/zc/buildout/tests.py	2009-03-29 21:24:38 UTC (rev 98534)
+++ zc.buildout/branches/help-api/src/zc/buildout/tests.py	2009-03-29 21:24:45 UTC (rev 98535)
@@ -1518,9 +1518,9 @@
 
     """
 
-def bug_250537_broken_symlink_doesnt_affect_sig():
-    """
-    
+if hasattr(os, 'symlink'):
+    def bug_250537_broken_symlink_doesnt_affect_sig():
+        """
 If we have a develop recipe, it's signature shouldn't be affected by
 broken symlinks, and better yet, computing the hash should not break
 because of the missing target file.



More information about the Checkins mailing list