[Mageia-sysadm] [367] only try to remove files that are on svn or symlinks

root at mageia.org root at mageia.org
Fri Jan 28 01:09:33 CET 2011


Revision: 367
Author:   boklm
Date:     2011-01-28 01:09:33 +0100 (Fri, 28 Jan 2011)
Log Message:
-----------
only try to remove files that are on svn or symlinks

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

Modified: build_system/mgarepo/trunk/MgaRepo/rpmutil.py
===================================================================
--- build_system/mgarepo/trunk/MgaRepo/rpmutil.py	2011-01-27 23:55:49 UTC (rev 366)
+++ build_system/mgarepo/trunk/MgaRepo/rpmutil.py	2011-01-28 00:09:33 UTC (rev 367)
@@ -562,7 +562,8 @@
         status = sourcesst.get(entry)
         path = os.path.join(sourcesdir, entry)
         if entry not in sources:
-            toremove.append(path)
+            if os.path.islink(path) or status is None:
+                toremove.append(path)
     for path in toremove:
         print "D\t%s" % path
         if not dryrun:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110128/9bd2b501/attachment.html>


More information about the Mageia-sysadm mailing list