aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-01-28 00:09:33 +0000
committerNicolas Vigier <boklm@mageia.org>2011-01-28 00:09:33 +0000
commit6aceca551420cc7de7cdf18c8ff180154a85d4f0 (patch)
tree29fa4dfdd8eeb94ae750ad4870b00d7cbf572152 /MgaRepo
parentabb85b97774907cd915e4b729db5db40f7edc028 (diff)
downloadmgarepo-6aceca551420cc7de7cdf18c8ff180154a85d4f0.tar
mgarepo-6aceca551420cc7de7cdf18c8ff180154a85d4f0.tar.gz
mgarepo-6aceca551420cc7de7cdf18c8ff180154a85d4f0.tar.bz2
mgarepo-6aceca551420cc7de7cdf18c8ff180154a85d4f0.tar.xz
mgarepo-6aceca551420cc7de7cdf18c8ff180154a85d4f0.zip
only try to remove files that are on svn or symlinks
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/rpmutil.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index 62c486d..2f07845 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -562,7 +562,8 @@ def sync(dryrun=False, commit=False, download=False):
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: