aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/rpmutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'MgaRepo/rpmutil.py')
-rw-r--r--MgaRepo/rpmutil.py2
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