Fix "NameError: global name 'myfilelist' is not defined" when
collision-protect is enabled.
Make sure that ${A} in initialized in case pkg_nofetch() needs to be
called. Thanks to Peper for reporting.
svn path=/main/branches/prefix/; revision=6082
mysettings=fetch_settings)
myuris = [uri for uri in alluris \
if os.path.basename(uri) == myfile]
+ fetch_settings["A"] = myfile # for use by pkg_nofetch()
if fetch(myuris, fetch_settings):
success = True
break
collisions = []
- print green("*")+" checking "+str(len(myfilelist))+" files for package collisions"
- for f in myfilelist:
+ print green("*")+" checking "+str(len(mycontents))+" files for package collisions"
+ for f in mycontents:
nocheck = False
# listdir isn't intelligent enough to exclude symlinked dirs,
# so we have to do it ourself