aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-02-05 19:12:39 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-02-05 19:12:39 +0100
commitddea7da749c71a9ee94694a5f742b1ecf82157c3 (patch)
treee8cfafa9d9b7ebdc55de25e496827f9753e75ba2 /pym/portage/dispatch_conf.py
parentCheck presence of .portage_not_installed file instead of .git directory (diff)
downloadportage-ddea7da749c71a9ee94694a5f742b1ecf82157c3.tar.gz
portage-ddea7da749c71a9ee94694a5f742b1ecf82157c3.tar.bz2
portage-ddea7da749c71a9ee94694a5f742b1ecf82157c3.zip
Use local dispatch-conf.conf and make.globals when using Portage from working copy or unpacked tarball.
Diffstat (limited to 'pym/portage/dispatch_conf.py')
-rw-r--r--pym/portage/dispatch_conf.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/portage/dispatch_conf.py b/pym/portage/dispatch_conf.py
index 0c71e6552..f975ccd59 100644
--- a/pym/portage/dispatch_conf.py
+++ b/pym/portage/dispatch_conf.py
@@ -1,5 +1,5 @@
# archive_conf.py -- functionality common to archive-conf and dispatch-conf
-# Copyright 2003-2013 Gentoo Foundation
+# Copyright 2003-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
@@ -52,7 +52,10 @@ def diffstatusoutput(cmd, file1, file2):
def read_config(mandatory_opts):
eprefix = portage.settings["EPREFIX"]
- config_path = os.path.join(eprefix or os.sep, "etc/dispatch-conf.conf")
+ if portage._not_installed:
+ config_path = os.path.join(portage.PORTAGE_BASE_PATH, "cnf", "dispatch-conf.conf")
+ else:
+ config_path = os.path.join(eprefix or os.sep, "etc/dispatch-conf.conf")
loader = KeyValuePairFileLoader(config_path, None)
opts, _errors = loader.load()
if not opts: