From: Rob Cakebread Date: Sat, 26 Jul 2008 18:31:33 +0000 (+0000) Subject: Backport to portage 2.1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fee46b78c0730802ba59c57f4d0ce658e6ddf88d;p=g-pypi.git Backport to portage 2.1 git-svn-id: http://g-pypi.googlecode.com/svn/trunk@10 118783bc-b352-0410-bbc3-0f610f6f7ae8 --- diff --git a/g_pypi/portage_utils.py b/g_pypi/portage_utils.py index 7a92a4c..2ad5dc8 100644 --- a/g_pypi/portage_utils.py +++ b/g_pypi/portage_utils.py @@ -18,7 +18,6 @@ import logging from portage import config as portage_config from portage import settings as portage_settings -from portage.const import REPO_NAME_LOC try: #portage >= 2.2 @@ -52,7 +51,7 @@ def get_repo_names(): [os.path.realpath(t) for t in ENV["PORTDIR_OVERLAY"].split()] treemap = {} for path in porttrees: - repo_name_path = os.path.join(path, REPO_NAME_LOC) + repo_name_path = os.path.join(path, 'profiles/repo_name') try: repo_name = open(repo_name_path, 'r').readline().strip() treemap[repo_name] = path