aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-02-05 17:25:18 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2014-02-05 17:25:18 +0100
commit9e9c3d38f42b6ed7a76419d9cad4e26939768b49 (patch)
treeca16b21a5ffc68fdd94f0b4d02b2960dcf98913d /pym/portage/repository/config.py
parentRename a private function. (diff)
downloadportage-9e9c3d38f42b6ed7a76419d9cad4e26939768b49.tar.gz
portage-9e9c3d38f42b6ed7a76419d9cad4e26939768b49.tar.bz2
portage-9e9c3d38f42b6ed7a76419d9cad4e26939768b49.zip
Check presence of .portage_not_installed file instead of .git directory
to allow using local files also when using Portage from unpacked tarball.
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index c931c8653..e0d3173bf 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -960,7 +960,7 @@ def load_repository_config(settings, extra_files=None):
if "PORTAGE_REPOSITORIES" in settings:
repoconfigpaths.append(io.StringIO(settings["PORTAGE_REPOSITORIES"]))
else:
- if portage._working_copy:
+ if portage._not_installed:
repoconfigpaths.append(os.path.join(PORTAGE_BASE_PATH, "cnf", "repos.conf"))
else:
repoconfigpaths.append(os.path.join(settings.global_config_path, "repos.conf"))