diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-01-28 00:10:36 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-01-28 00:10:36 +0000 |
commit | 8a088f3cba9d2c327347bff51bf94d829cbc1c35 (patch) | |
tree | 29fa4dfdd8eeb94ae750ad4870b00d7cbf572152 | |
parent | b72adddcf63bacb84c73ed186b514811bb26f583 (diff) | |
parent | 6aceca551420cc7de7cdf18c8ff180154a85d4f0 (diff) | |
download | mgarepo-1.9.8.tar mgarepo-1.9.8.tar.gz mgarepo-1.9.8.tar.bz2 mgarepo-1.9.8.tar.xz mgarepo-1.9.8.zip |
mgarepo version 1.9.81.9.8
-rw-r--r-- | MgaRepo/rpmutil.py | 3 |
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: |