From 6aceca551420cc7de7cdf18c8ff180154a85d4f0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 28 Jan 2011 00:09:33 +0000 Subject: only try to remove files that are on svn or symlinks --- MgaRepo/rpmutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1