summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-28 11:46:00 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-28 11:46:00 -0700
commit53de70ac9b8cca65a1a7371b4a2e16a31f2fe629 (patch)
treee01638db276aa9b584a09b430f54faa30ce2cffd /bin/repoman
parent8a3a72a4b1319acacb860abc59d3f9809c24619d (diff)
downloadportage-53de70ac9b8cca65a1a7371b4a2e16a31f2fe629.tar.gz
portage-53de70ac9b8cca65a1a7371b4a2e16a31f2fe629.tar.bz2
portage-53de70ac9b8cca65a1a7371b4a2e16a31f2fe629.zip
Fix breakage (from reposyntax branch) in repoman's ability to append
the current repo to PORTDIR_OVERLAY.
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index f2f16f25c..8004004ca 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -562,7 +562,10 @@ if options.mode == 'commit' and not options.pretend and not vcs:
repoman_settings = portage.config(local_config=False)
repoman_settings['PORTDIR_OVERLAY'] = "%s %s" % \
(repoman_settings.get('PORTDIR_OVERLAY', ''), portdir_overlay)
-repoman_settings.backup_changes('PORTDIR_OVERLAY')
+# We have to call the config constructor again since so
+# that config.repositories is initialized correctly.
+repoman_settings = portage.config(local_config=False, env=dict(os.environ,
+ PORTDIR_OVERLAY=repoman_settings['PORTDIR_OVERLAY']))
root = '/'
trees = {