Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15174 - in main/trunk: bin man
Date: Thu, 07 Jan 2010 20:19:58
Message-Id: E1NSypn-0007v7-Dc@stork.gentoo.org
1 Author: zmedico
2 Date: 2010-01-07 20:19:54 +0000 (Thu, 07 Jan 2010)
3 New Revision: 15174
4
5 Modified:
6 main/trunk/bin/repoman
7 main/trunk/man/repoman.1
8 Log:
9 Bug #269225 - Warn about virtuals with non-empty HOMEPAGE or LICENSE. Thanks
10 to Ulrich M?\195?\188ller <ulm@g.o> for this patch.
11
12
13 Modified: main/trunk/bin/repoman
14 ===================================================================
15 --- main/trunk/bin/repoman 2010-01-07 19:13:07 UTC (rev 15173)
16 +++ main/trunk/bin/repoman 2010-01-07 20:19:54 UTC (rev 15174)
17 @@ -278,6 +278,7 @@
18 "KEYWORDS.stable":"Ebuilds that have been added directly with stable KEYWORDS",
19 "KEYWORDS.stupid":"Ebuilds that use KEYWORDS=-* instead of package.mask",
20 "LICENSE.missing":"Ebuilds that have a missing or empty LICENSE variable",
21 + "LICENSE.virtual":"Virtuals that have a non-empty LICENSE variable",
22 "DESCRIPTION.missing":"Ebuilds that have a missing or empty DESCRIPTION variable",
23 "DESCRIPTION.toolong":"DESCRIPTION is over %d characters" % max_desc_len,
24 "EAPI.definition":"EAPI is defined after an inherit call (must be defined before)",
25 @@ -285,6 +286,7 @@
26 "EAPI.unsupported":"Ebuilds that have an unsupported EAPI version (you must upgrade portage)",
27 "SLOT.invalid":"Ebuilds that have a missing or invalid SLOT variable value",
28 "HOMEPAGE.missing":"Ebuilds that have a missing or empty HOMEPAGE variable",
29 + "HOMEPAGE.virtual":"Virtuals that have a non-empty HOMEPAGE variable",
30 "DEPEND.bad":"User-visible ebuilds with bad DEPEND settings (matched against *visible* ebuilds)",
31 "RDEPEND.bad":"User-visible ebuilds with bad RDEPEND settings (matched against *visible* ebuilds)",
32 "PDEPEND.bad":"User-visible ebuilds with bad PDEPEND settings (matched against *visible* ebuilds)",
33 @@ -360,6 +362,8 @@
34 "DEPEND.badmaskedindev","RDEPEND.badmaskedindev","PDEPEND.badmaskedindev",
35 "DEPEND.badtilde", "RDEPEND.badtilde", "PDEPEND.badtilde",
36 "DESCRIPTION.toolong",
37 +"HOMEPAGE.virtual",
38 +"LICENSE.virtual",
39 "KEYWORDS.dropped",
40 "KEYWORDS.stupid",
41 "KEYWORDS.missing",
42 @@ -1381,6 +1385,13 @@
43 stats[myqakey]=stats[myqakey]+1
44 fails[myqakey].append(x+"/"+y+".ebuild")
45
46 + if catdir == "virtual":
47 + for var in ("HOMEPAGE", "LICENSE"):
48 + if myaux.get(var):
49 + myqakey = var + ".virtual"
50 + stats[myqakey] = stats[myqakey] + 1
51 + fails[myqakey].append(relative_path)
52 +
53 # 14 is the length of DESCRIPTION=""
54 if len(myaux['DESCRIPTION']) > max_desc_len:
55 stats['DESCRIPTION.toolong'] += 1
56
57 Modified: main/trunk/man/repoman.1
58 ===================================================================
59 --- main/trunk/man/repoman.1 2010-01-07 19:13:07 UTC (rev 15173)
60 +++ main/trunk/man/repoman.1 2010-01-07 20:19:54 UTC (rev 15174)
61 @@ -119,6 +119,9 @@
62 .B HOMEPAGE.missing
63 Ebuilds that have a missing or empty HOMEPAGE variable
64 .TP
65 +.B HOMEPAGE.virtual
66 +Virtuals that have a non-empty HOMEPAGE variable
67 +.TP
68 .B IUSE.invalid
69 This ebuild has a variable in IUSE that is not in the use.desc or its metadata.xml file
70 .TP
71 @@ -149,6 +152,9 @@
72 .B LICENSE.syntax
73 Syntax error in LICENSE (usually an extra/missing space/parenthesis)
74 .TP
75 +.B LICENSE.virtual
76 +Virtuals that have a non-empty LICENSE variable
77 +.TP
78 .B LIVEVCS.stable
79 Ebuild is a live ebuild (cvs, git, darcs, svn, etc) checkout with stable keywords.
80 .TP