Inside have_profile_dir(), check for existence of profiles.desc since that
authorZac Medico <zmedico@gentoo.org>
Tue, 11 Nov 2008 17:39:55 +0000 (17:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 11 Nov 2008 17:39:55 +0000 (17:39 -0000)
makes a little more sense thatn checking for package.mask.

svn path=/main/trunk/; revision=11852

pym/repoman/utilities.py

index 10f26727242f4456eb1cb7bab677f819e2f7c30c..cc654154cdeecbb0b0052e44d08ade4556295f62 100644 (file)
@@ -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