repoman: fix profiles.desc overlay path
authorZac Medico <zmedico@gentoo.org>
Sun, 3 Apr 2011 15:54:10 +0000 (08:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 3 Apr 2011 15:54:10 +0000 (08:54 -0700)
Thanks to Alexey Shvetsov <alexxy@gentoo.org> for reporting this issue
and testing the fix.

bin/repoman

index 8f363722d6e2cef8d5374f58d8a728dc9f81cf90..9156a46249e5d4541581d9efd60871e6d2cdfcc6 100755 (executable)
@@ -722,7 +722,7 @@ for path in portdb.porttrees:
                        elif arch[2] not in valid_profile_types:
                                err("invalid profile type: \"" + bad(arch[2]) + "\" in " + \
                                        desc_path + " line %d" % (i+1, ))
-                       profile_desc = ProfileDesc(arch[0], arch[2], arch[1], portdir)
+                       profile_desc = ProfileDesc(arch[0], arch[2], arch[1], path)
                        if not os.path.isdir(profile_desc.abs_path):
                                logging.error(
                                        "Invalid %s profile (%s) for arch %s in %s line %d",