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

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: