repoman: fix KEYWORDS.dropped for EAPI 5 sub-slot
authorZac Medico <zmedico@gentoo.org>
Thu, 18 Oct 2012 01:59:40 +0000 (18:59 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 18 Oct 2012 01:59:40 +0000 (18:59 -0700)
bin/repoman

index ba0ec9a04676ce96a10676375c31b11ee9c3f569..1502d6bb74f903eb2b251d4c1b2f707a8903a9ef 100755 (executable)
@@ -1806,9 +1806,9 @@ for x in effective_scanlist:
                ebuild_archs = set(kw.lstrip("~") for kw in keywords \
                        if not kw.startswith("-"))
 
-               previous_keywords = slot_keywords.get(myaux["SLOT"])
+               previous_keywords = slot_keywords.get(pkg.slot)
                if previous_keywords is None:
-                       slot_keywords[myaux["SLOT"]] = set()
+                       slot_keywords[pkg.slot] = set()
                elif ebuild_archs and not live_ebuild:
                        dropped_keywords = previous_keywords.difference(ebuild_archs)
                        if dropped_keywords:
@@ -1817,7 +1817,7 @@ for x in effective_scanlist:
                                        relative_path + ": %s" % \
                                        " ".join(sorted(dropped_keywords)))
 
-               slot_keywords[myaux["SLOT"]].update(ebuild_archs)
+               slot_keywords[pkg.slot].update(ebuild_archs)
 
                # KEYWORDS="-*" is a stupid replacement for package.mask and screws general KEYWORDS semantics
                if "-*" in keywords: