Remove redundant eprefix in config constructors.
authorZac Medico <zmedico@gentoo.org>
Sat, 10 Dec 2011 18:45:20 +0000 (10:45 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 10 Dec 2011 18:45:20 +0000 (10:45 -0800)
Since commit 11a7448f1d5a0bfb38f8de9d66a8fa8d7118c877, the config
constructor uses portage.const.EPREFIX by default.

bin/egencache
bin/repoman

index 6d18f66e554a448f638e017cdfceadaa39df8004..7a87bb62c02641b70564482a641ccc0960ee042d 100755 (executable)
@@ -841,10 +841,8 @@ def egencache_main(args):
        if options.portdir is not None:
                env['PORTDIR'] = options.portdir
 
-       eprefix = portage.const.EPREFIX
-
        settings = portage.config(config_root=config_root,
-               local_config=False, env=env, eprefix=eprefix)
+               local_config=False, env=env)
 
        default_opts = None
        if not options.ignore_default_opts:
@@ -857,7 +855,7 @@ def egencache_main(args):
                        env['PORTAGE_DEPCACHEDIR'] = options.cache_dir
 
                settings = portage.config(config_root=config_root,
-                       local_config=False, env=env, eprefix=eprefix)
+                       local_config=False, env=env)
 
        if not options.update and not options.update_use_local_desc \
                        and not options.update_changelogs:
index 24e8f77b69f8e2f358917adaa7f232c99fd334c4..43270f9e814b59f930737f4531d2afaf6c5a52cc 100755 (executable)
@@ -95,8 +95,7 @@ os.umask(0o22)
 # behave incrementally.
 repoman_incrementals = tuple(x for x in \
        portage.const.INCREMENTALS if x != 'ACCEPT_KEYWORDS')
-eprefix = portage.const.EPREFIX
-repoman_settings = portage.config(local_config=False, eprefix=eprefix)
+repoman_settings = portage.config(local_config=False)
 repoman_settings.lock()
 
 if repoman_settings.get("NOCOLOR", "").lower() in ("yes", "true") or \
@@ -565,13 +564,13 @@ 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, eprefix=eprefix)
+repoman_settings = portage.config(local_config=False)
 repoman_settings['PORTDIR_OVERLAY'] = "%s %s" % \
        (repoman_settings.get('PORTDIR_OVERLAY', ''),
        portage._shell_quote(portdir_overlay))
 # We have to call the config constructor again so
 # that config.repositories is initialized correctly.
-repoman_settings = portage.config(local_config=False, eprefix=eprefix,
+repoman_settings = portage.config(local_config=False,
        env=dict(os.environ, PORTDIR_OVERLAY=repoman_settings['PORTDIR_OVERLAY']))
 
 root = repoman_settings['EROOT']
@@ -2005,7 +2004,7 @@ for x in effective_scanlist:
                                                config_incrementals=repoman_incrementals,
                                                local_config=False,
                                                _unmatched_removal=options.unmatched_removal,
-                                               env=env, eprefix=eprefix)
+                                               env=env)
                                        dep_settings.categories = repoman_settings.categories
                                        if options.without_mask:
                                                dep_settings._mask_manager = \