Title: [commits] (bear) [11371] change to the manifest directory copy code to deal with symlink'd directories by recreating the symlink instead of doing a deep copy
Revision
11371
Author
bear
Date
2006-08-09 22:45:31 -0700 (Wed, 09 Aug 2006)

Log Message

change to the manifest directory copy code to deal with symlink'd directories by recreating the symlink instead of doing a deep copy
bug 6277, r=heikki

Modified Paths

Diff

Modified: trunk/hardhat/hardhatlib.py (11370 => 11371)

--- trunk/hardhat/hardhatlib.py	2006-08-10 05:27:51 UTC (rev 11370)
+++ trunk/hardhat/hardhatlib.py	2006-08-10 05:45:31 UTC (rev 11371)
@@ -1331,8 +1331,12 @@
             # directory excludes so far only being for one pattern - .svn
             # if we need to add more, this will have to change to match method of file excludes above
             if os.path.isdir(full_name) and not name in excludes:
-                _copyTree(full_name, os.path.join(destdir, name), True, 
-                 patterns, excludes)
+                if os.path.islink(full_name):
+                    if not os.path.exists(destdir):
+                        mkdirs(destdir)
+                    os.symlink(os.readlink(full_name), os.path.join(destdir, name))
+                else:
+                    _copyTree(full_name, os.path.join(destdir, name), True, patterns, excludes)
 
 def mkdirs(newdir, mode=0777):
     try: 




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to