summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-04 11:45:49 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-04 11:45:49 -0800
commit328e4f5d1ee2513383a539691259593a6b0c2096 (patch)
treebe140887bc4464b06a342199098c29f5642358b3
parent8553b7bcb4b0bef2973774c22cc2fa84682c464b (diff)
downloadportage-328e4f5d1ee2513383a539691259593a6b0c2096.tar.gz
portage-328e4f5d1ee2513383a539691259593a6b0c2096.tar.bz2
portage-328e4f5d1ee2513383a539691259593a6b0c2096.zip
Scheduler: set MERGE_TYPE for pkg_pretend
-rw-r--r--pym/_emerge/Scheduler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py
index 91260d316..32019f22e 100644
--- a/pym/_emerge/Scheduler.py
+++ b/pym/_emerge/Scheduler.py
@@ -1025,6 +1025,7 @@ class Scheduler(PollScheduler):
os.makedirs(infloc)
portage.xpak.tbz2(tbz2_file).unpackinfo(infloc)
ebuild_path = os.path.join(infloc, x.pf + ".ebuild")
+ settings.configdict["pkg"]["MERGE_TYPE"] = "binary"
else:
tree = "porttree"
@@ -1032,6 +1033,10 @@ class Scheduler(PollScheduler):
ebuild_path = portdb.findname(x.cpv, myrepo=x.repo)
if ebuild_path is None:
raise AssertionError("ebuild not found for '%s'" % x.cpv)
+ if self._build_opts.buildpkgonly:
+ settings.configdict["pkg"]["MERGE_TYPE"] = "buildonly"
+ else:
+ settings.configdict["pkg"]["MERGE_TYPE"] = "source"
portage.package.ebuild.doebuild.doebuild_environment(ebuild_path,
"pretend", settings=settings,