def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",use_locks=1, try_mirrors=1):
"fetch files. Will use digest file if available."
- for var_name in ("FETCHCOMMAND", "RESUMECOMMAND"):
- if not mysettings.get(var_name, None):
- writemsg(("!!! %s is unset. It should have been defined " + \
- "in /etc/make.globals.\n") % var_name,
- noiselevel=-1)
- return 0
features = mysettings.features
# 'nomirror' is bad/negative logic. You Restrict mirroring, not no-mirroring.
if ("mirror" in mysettings["RESTRICT"].split()) or \
can_fetch=True
+ for var_name in ("FETCHCOMMAND", "RESUMECOMMAND"):
+ if not mysettings.get(var_name, None):
+ can_fetch = False
+
if not listonly:
dirmode = 02070
filemode = 060
else:
writemsg("!!! File %s isn't fully fetched, but unable to complete it\n" % myfile,
noiselevel=-1)
+ for var_name in ("FETCHCOMMAND", "RESUMECOMMAND"):
+ if not mysettings.get(var_name, None):
+ writemsg(("!!! %s is unset. It should " + \
+ "have been defined in /etc/make.globals.\n") \
+ % var_name, noiselevel=-1)
return 0
else:
continue