diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-05 16:56:04 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-05 16:57:46 -0800 |
commit | dc374a216146ea3f376591553bd84c055754f708 (patch) | |
tree | dc92e7bb2f0a88fd5ca6c158a43215e9d8d694b2 | |
parent | ed38f24d36a0e333872f07595770da4b65174d9c (diff) | |
download | portage-dc374a216146ea3f376591553bd84c055754f708.tar.gz portage-dc374a216146ea3f376591553bd84c055754f708.tar.bz2 portage-dc374a216146ea3f376591553bd84c055754f708.zip |
inject binpkg after fetch for pkg_pretend
-rw-r--r-- | pym/_emerge/Scheduler.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index ca460e079..89313e883 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -1021,6 +1021,7 @@ class Scheduler(PollScheduler): if x.built: tree = "bintree" bintree = root_config.trees["bintree"].dbapi.bintree + fetched = False # Display fetch on stdout, so that it's always clear what # is consuming time here. @@ -1031,6 +1032,7 @@ class Scheduler(PollScheduler): if fetcher.wait() != os.EX_OK: failures += 1 continue + fetched = fetcher.pkg_path verifier = BinpkgVerifier(pkg=x, scheduler=sched_iface) @@ -1039,6 +1041,8 @@ class Scheduler(PollScheduler): failures += 1 continue + if fetched: + bintree.inject(x.cpv, filename=fetched) tbz2_file = bintree.getname(x.cpv) infloc = os.path.join(tmpdir, x.category, x.pf, "build-info") os.makedirs(infloc) |