From: Zac Medico Date: Tue, 11 Nov 2008 17:39:55 +0000 (-0000) Subject: Inside have_profile_dir(), check for existence of profiles.desc since that X-Git-Tag: v2.2_rc14~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=afaf07935f49bf256fadf8f2d5337073c9036112;p=portage.git 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 --- 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