aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MgaRepo/rpmutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index 9673111..66343b5 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -556,7 +556,7 @@ def sync(dryrun=False, commit=False, download=False):
if sourcesst.get(source):
if not (source in binrepoentries) and sourcesst.get(source)[1] == '?':
toadd.append(sourcepath)
- elif not download and not os.path.isfile(sourcepath):
+ elif (not download or dryrun) and not os.path.isfile(sourcepath):
sys.stderr.write("warning: %s not found\n" % sourcepath)
elif download and not os.path.isfile(sourcepath):
print("%s not found, downloading from %s" % (sourcepath, url))