"""Returns the URI to the Packages file for a given package."""
return self._pkgindex_uri.get(pkgname)
+
+
def gettbz2(self, pkgname):
"""Fetches the package from a remote site, if necessary. Attempts to
resume if the file appears to be partially downloaded."""
tbz2name = os.path.basename(tbz2_path)
resume = False
if os.path.exists(tbz2_path):
- if (tbz2name not in self.invalids):
+ if tbz2name[:-5] not in self.invalids:
return
else:
resume = True
bintree = trees["bintree"]
binpkg_path = bintree.getname(backup_dblink.mycpv)
if os.path.exists(binpkg_path) and \
- backup_dblink.mycpv not in bintree.invalids:
+ catsplit(backup_dblink.mycpv)[1] not in bintree.invalids:
return os.EX_OK
self.lockdb()