aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-05-17 08:37:58 +0000
committerNicolas Vigier <boklm@mageia.org>2011-05-17 08:37:58 +0000
commitfa51d6d5aa15964d154ebf47a7066217fbfccc1b (patch)
tree16b01c3367c7c62d413a969b256ce0b774f6b423 /MgaRepo
parent916ae4c7dc058ecf05953607986eb0f6ad44856a (diff)
downloadmgarepo-fa51d6d5aa15964d154ebf47a7066217fbfccc1b.tar
mgarepo-fa51d6d5aa15964d154ebf47a7066217fbfccc1b.tar.gz
mgarepo-fa51d6d5aa15964d154ebf47a7066217fbfccc1b.tar.bz2
mgarepo-fa51d6d5aa15964d154ebf47a7066217fbfccc1b.tar.xz
mgarepo-fa51d6d5aa15964d154ebf47a7066217fbfccc1b.zip
only add files with status "?" (bug #349)
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/rpmutil.py2
1 files changed, 1 insertions, 1 deletions
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)