upstream has changed the identity of the distfiles and the user would
otherwise have to manually remove the Manifest and files/digest-* files in
order to ensure correct results."""
- pkgdir = os.path.dirname(myebuild)
- fetchlist_dict = portage.FetchlistDict(pkgdir, mysettings, mydbapi)
- cat, pkg = pkgdir.split(os.sep)[-2:]
- cpv = cat + "/" + os.path.basename(myebuild)[:-7]
- from portage_manifest import Manifest
- mf = Manifest(pkgdir, mysettings["DISTDIR"],
- fetchlist_dict=fetchlist_dict)
- mf.create(requiredDistfiles=None,
- assumeDistHashesSometimes=True, assumeDistHashesAlways=True)
- distfiles = fetchlist_dict[cpv]
- for myfile in distfiles:
- try:
- del mf.fhashdict["DIST"][myfile]
- except KeyError:
- pass
- mf.write()
+ try:
+ portage._doebuild_manifest_exempt_depend += 1
+ pkgdir = os.path.dirname(myebuild)
+ fetchlist_dict = portage.FetchlistDict(pkgdir, mysettings, mydbapi)
+ cat, pkg = pkgdir.split(os.sep)[-2:]
+ cpv = cat + "/" + os.path.basename(myebuild)[:-7]
+ from portage_manifest import Manifest
+ mf = Manifest(pkgdir, mysettings["DISTDIR"],
+ fetchlist_dict=fetchlist_dict)
+ mf.create(requiredDistfiles=None,
+ assumeDistHashesSometimes=True, assumeDistHashesAlways=True)
+ distfiles = fetchlist_dict[cpv]
+ for myfile in distfiles:
+ try:
+ del mf.fhashdict["DIST"][myfile]
+ except KeyError:
+ pass
+ mf.write()
+ finally:
+ portage._doebuild_manifest_exempt_depend -= 1
for arg in pargs:
try: