Pass the correct PORTDIR_OVERLAY value into the profile-specific config
authorZac Medico <zmedico@gentoo.org>
Sun, 12 Apr 2009 02:20:56 +0000 (02:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 12 Apr 2009 02:20:56 +0000 (02:20 -0000)
constructor calls.

svn path=/main/trunk/; revision=13326

bin/repoman

index 86573bdb97a283d480c0f50b3daca61a31158d3e..709e5537b21f56b34c0399b77ac1268b0bc82e21 100755 (executable)
@@ -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