diff options
-rw-r--r-- | pym/portage/package/ebuild/digestgen.py | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/pym/portage/package/ebuild/digestgen.py b/pym/portage/package/ebuild/digestgen.py index ac64467d9..d5cb2b829 100644 --- a/pym/portage/package/ebuild/digestgen.py +++ b/pym/portage/package/ebuild/digestgen.py @@ -7,7 +7,7 @@ import errno import portage portage.proxy.lazyimport.lazyimport(globals(), - 'portage.package.ebuild.doebuild:doebuild_environment', + 'portage.package.ebuild._spawn_nofetch:spawn_nofetch', ) from portage import os @@ -18,7 +18,6 @@ from portage.exception import InvalidDependString, FileNotFound, \ from portage.localization import _ from portage.manifest import Manifest from portage.output import colorize -from portage.package.ebuild.config import config from portage.package.ebuild.fetch import fetch from portage.util import writemsg, writemsg_stdout from portage.versions import catsplit @@ -104,29 +103,23 @@ def digestgen(myarchives=None, mysettings=None, myportdb=None): if missing_files: mytree = os.path.realpath(os.path.dirname( os.path.dirname(mysettings["O"]))) - fetch_settings = config(clone=mysettings) - debug = mysettings.get("PORTAGE_DEBUG") == "1" for myfile in missing_files: uris = set() for cpv in distfiles_map[myfile]: - myebuild = os.path.join(mysettings["O"], - catsplit(cpv)[1] + ".ebuild") - # for RESTRICT=fetch, mirror, etc... - doebuild_environment(myebuild, "fetch", - mysettings["ROOT"], fetch_settings, - debug, 1, myportdb) uris.update(myportdb.getFetchMap( cpv, mytree=mytree)[myfile]) - fetch_settings["A"] = myfile # for use by pkg_nofetch() - try: st = os.stat(os.path.join( mysettings["DISTDIR"],myfile)) except OSError: st = None - if not fetch({myfile : uris}, fetch_settings): + if not fetch({myfile : uris}, mysettings): + myebuild = os.path.join(mysettings["O"], + catsplit(cpv)[1] + ".ebuild") + spawn_nofetch(myportdb, myebuild, + settings=mysettings) writemsg(_("!!! Fetch failed for %s, can't update " "Manifest\n") % myfile, noiselevel=-1) if myfile in dist_hashes and \ |