diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-05-17 09:08:39 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-05-17 09:08:39 +0000 |
commit | ec27c93564820c2fe9ebe049727091b09a7d1123 (patch) | |
tree | 3de798b964ee29190f338bc56d12c22c6ce118eb /MgaRepo | |
parent | fa51d6d5aa15964d154ebf47a7066217fbfccc1b (diff) | |
download | mgarepo-ec27c93564820c2fe9ebe049727091b09a7d1123.tar mgarepo-ec27c93564820c2fe9ebe049727091b09a7d1123.tar.gz mgarepo-ec27c93564820c2fe9ebe049727091b09a7d1123.tar.bz2 mgarepo-ec27c93564820c2fe9ebe049727091b09a7d1123.tar.xz mgarepo-ec27c93564820c2fe9ebe049727091b09a7d1123.zip |
ignore incorrect symlinks (bug #463)
Diffstat (limited to 'MgaRepo')
-rw-r--r-- | MgaRepo/rpmutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 0d1faa5..8e4efc5 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -570,7 +570,7 @@ def sync(dryrun=False, commit=False, download=False): status = sourcesst.get(entry) path = os.path.join(sourcesdir, entry) if entry not in sources: - if os.path.islink(path) or status is None: + if os.path.isfile(path) and (os.path.islink(path) or status is None): toremove.append(path) for path in toremove: print "D\t%s" % path |