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>
Wed, 13 Apr 2011 07:49:21 +0000 (00:49 -0700)
Thanks to Alexey Shvetsov <alexxy@gentoo.org> for reporting this issue
and testing the fix.

bin/repoman

index 7236909919ab643df83ff9b9879e9620a8aabefb..0c6f6552ad771e27199f316098e1806d5d80ecd9 100755 (executable)
@@ -721,7 +721,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",