From fa51d6d5aa15964d154ebf47a7066217fbfccc1b Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 17 May 2011 08:37:58 +0000 Subject: only add files with status "?" (bug #349) --- MgaRepo/rpmutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 7f3ebd7..0d1faa5 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -538,7 +538,7 @@ def sync(dryrun=False, commit=False, download=False): for source, url in sources.iteritems(): sourcepath = os.path.join(sourcesdir, source) if sourcesst.get(source): - if not os.path.islink(sourcepath): + if not os.path.islink(sourcepath) and sourcesst.get(source)[1] == '?': toadd.append(sourcepath) elif not download and not os.path.isfile(sourcepath): sys.stderr.write("warning: %s not found\n" % sourcepath) -- cgit v1.2.1