From fc99e6d10c0d359de1d28d1ff414b8c2a0f6a969 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 14 Nov 2008 20:50:30 +0000 Subject: Exempt live ebuilds from KEYWORDS.missing and KEYWORDS.dropped warnings. Thanks to Jorge Manuel B. S. Vicetto for the suggestion. svn path=/main/trunk/; revision=11911 --- bin/repoman | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/repoman b/bin/repoman index d762d4a6f..a9bbe6237 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1106,6 +1106,7 @@ for x in scanlist: myaux = pkg.metadata eapi = myaux["EAPI"] inherited = pkg.inherited + live_ebuild = live_eclasses.intersection(inherited) if not src_uri_error: # Check that URIs don't reference a server from thirdpartymirrors. @@ -1153,6 +1154,8 @@ for x in scanlist: if catdir == "virtual" and \ missing_var in ("HOMEPAGE", "LICENSE"): continue + if live_ebuild and missing_var == "KEYWORDS": + continue myqakey=missingvars[pos]+".missing" stats[myqakey]=stats[myqakey]+1 fails[myqakey].append(x+"/"+y+".ebuild") @@ -1184,7 +1187,7 @@ for x in scanlist: previous_keywords = slot_keywords.get(myaux["SLOT"]) if previous_keywords is None: slot_keywords[myaux["SLOT"]] = set() - else: + elif not live_ebuild: dropped_keywords = previous_keywords.difference(ebuild_archs) if dropped_keywords: stats["KEYWORDS.dropped"] += 1 @@ -1210,7 +1213,7 @@ for x in scanlist: Ebuilds that inherit a "Live" eclass (darcs,subversion,git,cvs,etc..) should not be allowed to be marked stable """ - if live_eclasses.intersection(pkg.inherited): + if live_ebuild: bad_stable_keywords = [] for keyword in keywords: if not keyword.startswith("~") and \ -- cgit v1.2.3-1-g7c22