repoman: remove redundant config constructor
authorZac Medico <zmedico@gentoo.org>
Fri, 10 Feb 2012 23:13:49 +0000 (15:13 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 10 Feb 2012 23:13:49 +0000 (15:13 -0800)
bin/repoman

index c78b42f9d08f5f8f8bda9607f2d256454205ae69..7edeb65723b4ba5677232de7a8e486bfb70149a4 100755 (executable)
@@ -96,7 +96,6 @@ os.umask(0o22)
 repoman_incrementals = tuple(x for x in \
        portage.const.INCREMENTALS if x != 'ACCEPT_KEYWORDS')
 repoman_settings = portage.config(local_config=False)
-repoman_settings.lock()
 
 if repoman_settings.get("NOCOLOR", "").lower() in ("yes", "true") or \
        repoman_settings.get('TERM') == 'dumb' or \
@@ -559,7 +558,6 @@ if options.mode == 'commit' and not options.pretend and not vcs:
        options.pretend = True
 
 # Ensure that PORTDIR_OVERLAY contains the repository corresponding to $PWD.
-repoman_settings = portage.config(local_config=False)
 repoman_settings['PORTDIR_OVERLAY'] = "%s %s" % \
        (repoman_settings.get('PORTDIR_OVERLAY', ''),
        portage._shell_quote(portdir_overlay))