Backport to portage 2.1
authorRob Cakebread <pythonhead@gentoo.org>
Sat, 26 Jul 2008 18:31:33 +0000 (18:31 +0000)
committerRob Cakebread <pythonhead@gentoo.org>
Sat, 26 Jul 2008 18:31:33 +0000 (18:31 +0000)
git-svn-id: http://g-pypi.googlecode.com/svn/trunk@10 118783bc-b352-0410-bbc3-0f610f6f7ae8

g_pypi/portage_utils.py

index 7a92a4c3ad5d25919a30467b1aee1bdf4bd6338c..2ad5dc8c495e55fc275486a257c8ee8518a9371c 100644 (file)
@@ -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