[issue257] Error message is related to the wrong file in metadata-rpm
Luiz Angelo Daros de Luca at Labix Tracker
tracker at labix.org
Fri Nov 24 08:48:22 PST 2006
Luiz Angelo Daros de Luca <luizluca at gmail.com> added the comment:
item is OK but flitem is ERROR and fetcher.getCaching() is NEVER (updating channels)
# this fails because of flitem
if item.getStatus() == SUCCEEDED and flitem.getStatus() == SUCCEEDED:
localpath = item.getTargetPath()
filelistspath = flitem.getTargetPath()
loader = RPMMetaDataLoader(localpath, filelistspath,
self._baseurl)
loader.setChannel(self)
self._loaders.append(loader)
# This fails because of Caching
elif (item.getStatus() == SUCCEEDED and
flitem.getStatus() == FAILED and
fetcher.getCaching() is ALWAYS):
iface.warning(_("Failed to download. You must fetch channel "
"information to acquire needed filelists.\n"
"%s: %s") % (flitem.getURL(),
flitem.getFailedReason()))
return False
# Enter here
elif fetcher.getCaching() is NEVER:
lines = [_("Failed acquiring information for '%s':") % self,
u"%s: %s" % (item.getURL(), item.getFailedReason())]
raise Error, "\n".join(lines)
else:
return False
_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue257>
_______________________________________
More information about the Smart
mailing list