Fix breakage (from reposyntax branch) in repoman's ability to append
authorZac Medico <zmedico@gentoo.org>
Tue, 28 Sep 2010 18:46:00 +0000 (11:46 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 28 Sep 2010 18:46:00 +0000 (11:46 -0700)
the current repo to PORTDIR_OVERLAY.

bin/repoman

index f2f16f25cf9c583ac41797eb96be65c64e89f7f5..8004004ca2cc9c9aece07e09b111309c2d1a9f28 100755 (executable)
@@ -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 = {