summaryrefslogtreecommitdiff
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
parentUpdate hardcoded "cvs" error messages to show the correct vcs value. (diff)
downloadportage-multirepo-afaf07935f49bf256fadf8f2d5337073c9036112.tar.gz
portage-multirepo-afaf07935f49bf256fadf8f2d5337073c9036112.tar.bz2
portage-multirepo-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
-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 10f26727..cc654154 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