summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-30 07:07:16 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-30 07:07:16 +0000
commit17584e6a2bea0f2c77944c57fa9aa71f3d29699c (patch)
tree623948e9ea390755d4e6898d9f0e669bd1fce8fa /bin
parentBug #265747 - Add a new /etc/portage/repos.conf config file which can be used (diff)
downloadportage-multirepo-17584e6a2bea0f2c77944c57fa9aa71f3d29699c.tar.gz
portage-multirepo-17584e6a2bea0f2c77944c57fa9aa71f3d29699c.tar.bz2
portage-multirepo-17584e6a2bea0f2c77944c57fa9aa71f3d29699c.zip
Pass the correct PORTDIR_OVERLAY value into the profile-specific config
constructor calls. (trunk r13326) svn path=/main/branches/2.1.6/; revision=13491
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/repoman b/bin/repoman
index adfe987c..e1af1c74 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -498,9 +498,14 @@ repo_info = portdb._repo_info[portdir_overlay]
portdb.porttrees = list(repo_info.eclass_db.porttrees)
portdir = portdb.porttrees[0]
+# Generate an appropriate PORTDIR_OVERLAY value for passing into the
+# profile-specific config constructor calls.
+env = os.environ.copy()
+env['PORTDIR_OVERLAY'] = ' '.join(portdb.porttrees[1:])
+
logging.info('Setting paths:')
logging.info('PORTDIR = "' + portdir + '"')
-logging.info('PORTDIR_OVERLAY = "%s"' % ' '.join(portdb.porttrees[1:]))
+logging.info('PORTDIR_OVERLAY = "%s"' % env['PORTDIR_OVERLAY'])
portdb.mysettings = repoman_settings
root_config = RootConfig(repoman_settings, trees[root], None)
@@ -1529,7 +1534,8 @@ for x in scanlist:
dep_settings = portage.config(
config_profile_path=profdir,
config_incrementals=portage.const.INCREMENTALS,
- local_config=False)
+ local_config=False,
+ env=env)
if options.without_mask:
dep_settings.pmaskdict.clear()
arch_caches[prof[0]] = dep_settings