summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-11 17:39:55 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-11 17:39:55 +0000
commitafaf07935f49bf256fadf8f2d5337073c9036112 (patch)
tree8aa419aa35c65cc7853a1c676a1a884274aa315a /pym
parentbfee6722b70cd7a88823380fd45bb055d221a855 (diff)
downloadportage-afaf07935f49bf256fadf8f2d5337073c9036112.tar.gz
portage-afaf07935f49bf256fadf8f2d5337073c9036112.tar.bz2
portage-afaf07935f49bf256fadf8f2d5337073c9036112.zip
Inside have_profile_dir(), check for existence of profiles.desc since that
makes a little more sense thatn checking for package.mask. svn path=/main/trunk/; revision=11852
Diffstat (limited to 'pym')
-rw-r--r--pym/repoman/utilities.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py
index 10f267272..cc654154c 100644
--- a/pym/repoman/utilities.py
+++ b/pym/repoman/utilities.py
@@ -99,7 +99,7 @@ def have_profile_dir(path, maxdepth=3):
""" Try to figure out if 'path' has a /profiles dir in it by checking for a package.mask file
"""
while path != "/" and maxdepth:
- if os.path.exists(path + "/profiles/package.mask"):
+ if os.path.exists(os.path.join(path, "profiles", "profiles.desc")):
return normalize_path(path)
path = normalize_path(path + "/..")
maxdepth -= 1