Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 327874 Details for
Bug 440638
repoman check for deprecated licenses
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add check for deprecated licenses
0001-repoman-add-check-for-deprecated-licenses-bug-440638.patch (text/plain), 2.25 KB, created by
Ulrich Müller
on 2012-10-31 17:45:49 UTC
(
hide
)
Description:
Add check for deprecated licenses
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2012-10-31 17:45:49 UTC
Size:
2.25 KB
patch
obsolete
>From 99179c77cadb8a476f18a25dfb5170244f5de943 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org> >Date: Wed, 31 Oct 2012 18:42:20 +0100 >Subject: [PATCH] repoman: add check for deprecated licenses, bug 440638 > >--- > bin/repoman | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/bin/repoman b/bin/repoman >index 1502d6b..399bd9a 100755 >--- a/bin/repoman >+++ b/bin/repoman >@@ -359,6 +359,7 @@ qahelp={ > "IUSE.invalid":"This ebuild has a variable in IUSE that is not in the use.desc or its metadata.xml file", > "IUSE.missing":"This ebuild has a USE conditional which references a flag that is not listed in IUSE", > "LICENSE.invalid":"This ebuild is listing a license that doesnt exist in portages license/ dir.", >+ "LICENSE.deprecated":"This ebuild is listing a deprecated license.", > "KEYWORDS.invalid":"This ebuild contains KEYWORDS that are not listed in profiles/arch.list or for which no valid profile was found", > "RDEPEND.implicit":"RDEPEND is unset in the ebuild which triggers implicit RDEPEND=$DEPEND assignment (prior to EAPI 4)", > "RDEPEND.suspect":"RDEPEND contains a package that usually only belongs in DEPEND.", >@@ -398,6 +399,7 @@ qawarnings = set(( > "DESCRIPTION.toolong", > "EAPI.deprecated", > "HOMEPAGE.virtual", >+"LICENSE.deprecated", > "LICENSE.virtual", > "KEYWORDS.dropped", > "KEYWORDS.stupid", >@@ -922,6 +924,13 @@ for x in repoman_settings.archlist(): > print(red("up with the "+x+" team.")) > print() > >+global_noiselimit = portage.util.noiselimit >+# Suppress error message if @DEPRECATED license group doesn't exist >+portage.util.noiselimit = -2 >+liclist_deprecated = \ >+ repoman_settings._license_manager.expandLicenseTokens(["@DEPRECATED"]) >+portage.util.noiselimit = global_noiselimit >+ > if not liclist: > logging.fatal("Couldn't find licenses?") > sys.exit(1) >@@ -2014,6 +2023,9 @@ for x in effective_scanlist: > if lic not in liclist and lic != "||": > stats["LICENSE.invalid"]=stats["LICENSE.invalid"]+1 > fails["LICENSE.invalid"].append(x+"/"+y+".ebuild: %s" % lic) >+ elif lic in liclist_deprecated: >+ stats["LICENSE.deprecated"]=stats["LICENSE.deprecated"]+1 >+ fails["LICENSE.deprecated"].append(x+"/"+y+".ebuild: %s" % lic) > > #keyword checks > myuse = myaux["KEYWORDS"].split() >-- >1.7.12.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 440638
: 327874