From ec27c93564820c2fe9ebe049727091b09a7d1123 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 17 May 2011 09:08:39 +0000 Subject: ignore incorrect symlinks (bug #463) --- MgaRepo/rpmutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1