From afaf07935f49bf256fadf8f2d5337073c9036112 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 11 Nov 2008 17:39:55 +0000 Subject: 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 --- pym/repoman/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/repoman') 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 -- cgit v1.2.3-1-g7c22