[Mageia-sysadm] [345] don't try to add binary file if it is a symlink

root at mageia.org root at mageia.org
Tue Jan 25 19:33:01 CET 2011


Revision: 345
Author:   boklm
Date:     2011-01-25 19:33:00 +0100 (Tue, 25 Jan 2011)
Log Message:
-----------
don't try to add binary file if it is a symlink

Modified Paths:
--------------
    build_system/mgarepo/trunk/MgaRepo/binrepo.py

Modified: build_system/mgarepo/trunk/MgaRepo/binrepo.py
===================================================================
--- build_system/mgarepo/trunk/MgaRepo/binrepo.py	2011-01-25 18:28:02 UTC (rev 344)
+++ build_system/mgarepo/trunk/MgaRepo/binrepo.py	2011-01-25 18:33:00 UTC (rev 345)
@@ -352,6 +352,10 @@
             sys.stderr.write("'%s' is already tracked by svn, ignoring\n" %
                     path)
             continue
+	if os.path.islink(path):
+            sys.stderr.write("'%s' is a symbolic link, ignoring\n" %
+                    path)
+            continue
         name = os.path.basename(path)
         binpath = os.path.join(bindir, name)
         os.rename(path, binpath)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110125/7f457228/attachment.html>


More information about the Mageia-sysadm mailing list