Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/
Date: Fri, 30 May 2014 13:03:35
Message-Id: 1401397059.ccaae712e8d42f5d9bbcc38195d8c072a7b9bc41.dol-sen@gentoo
1 commit: ccaae712e8d42f5d9bbcc38195d8c072a7b9bc41
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 29 20:57:39 2014 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Thu May 29 20:57:39 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ccaae712
7
8 repoman/main.py: Replace y with y_ebuild in the loop
9
10 This too helps clarify what it is.
11
12 ---
13 pym/repoman/main.py | 36 ++++++++++++++++++------------------
14 1 file changed, 18 insertions(+), 18 deletions(-)
15
16 diff --git a/pym/repoman/main.py b/pym/repoman/main.py
17 index 99238d9..ee70735 100755
18 --- a/pym/repoman/main.py
19 +++ b/pym/repoman/main.py
20 @@ -746,9 +746,9 @@ for xpkg in effective_scanlist:
21 # detect unused local USE-descriptions
22 used_useflags = set()
23
24 - for y in ebuildlist:
25 + for y_ebuild in ebuildlist:
26 ##################
27 - ebuild = Ebuild(repo_settings, repolevel, pkgdir, catdir, vcs_settings, xpkg, y)
28 + ebuild = Ebuild(repo_settings, repolevel, pkgdir, catdir, vcs_settings, xpkg, y_ebuild)
29 ##################
30
31 if check_changelog and not changelog_modified \
32 @@ -756,11 +756,11 @@ for xpkg in effective_scanlist:
33 stats['changelog.ebuildadded'] += 1
34 fails['changelog.ebuildadded'].append(ebuild.relative_path)
35
36 - if ebuild.untracked(check_ebuild_notadded, y, eadded):
37 + if ebuild.untracked(check_ebuild_notadded, y_ebuild, eadded):
38 # ebuild not added to vcs
39 stats["ebuild.notadded"] += 1
40 - fails["ebuild.notadded"].append(xpkg + "/" + y + ".ebuild")
41 - myesplit = portage.pkgsplit(y)
42 + fails["ebuild.notadded"].append(xpkg + "/" + y_ebuild + ".ebuild")
43 + myesplit = portage.pkgsplit(y_ebuild)
44
45 is_bad_split = myesplit is None or myesplit[0] != xpkg.split("/")[-1]
46
47 @@ -770,15 +770,15 @@ for xpkg in effective_scanlist:
48
49 if is_pv_toolong or is_pv_toolong2:
50 stats["ebuild.invalidname"] += 1
51 - fails["ebuild.invalidname"].append(xpkg + "/" + y + ".ebuild")
52 + fails["ebuild.invalidname"].append(xpkg + "/" + y_ebuild + ".ebuild")
53 continue
54 elif myesplit[0] != pkgdir:
55 print(pkgdir, myesplit[0])
56 stats["ebuild.namenomatch"] += 1
57 - fails["ebuild.namenomatch"].append(xpkg + "/" + y + ".ebuild")
58 + fails["ebuild.namenomatch"].append(xpkg + "/" + y_ebuild + ".ebuild")
59 continue
60
61 - pkg = pkgs[y]
62 + pkg = pkgs[y_ebuild]
63
64 if pkg.invalid:
65 allvalid = False
66 @@ -834,7 +834,7 @@ for xpkg in effective_scanlist:
67 continue
68 myqakey = missingvars[pos] + ".missing"
69 stats[myqakey] += 1
70 - fails[myqakey].append(xpkg + "/" + y + ".ebuild")
71 + fails[myqakey].append(xpkg + "/" + y_ebuild + ".ebuild")
72
73 if catdir == "virtual":
74 for var in ("HOMEPAGE", "LICENSE"):
75 @@ -868,7 +868,7 @@ for xpkg in effective_scanlist:
76 stats["KEYWORDS.stable"] += 1
77 fails["KEYWORDS.stable"].append(
78 "%s/%s.ebuild added with stable keywords: %s" %
79 - (xpkg, y, " ".join(stable_keywords)))
80 + (xpkg, y_ebuild, " ".join(stable_keywords)))
81
82 ebuild_archs = set(
83 kw.lstrip("~") for kw in keywords if not kw.startswith("-"))
84 @@ -897,7 +897,7 @@ for xpkg in effective_scanlist:
85 haskeyword = True
86 if not haskeyword:
87 stats["KEYWORDS.stupid"] += 1
88 - fails["KEYWORDS.stupid"].append(xpkg + "/" + y + ".ebuild")
89 + fails["KEYWORDS.stupid"].append(xpkg + "/" + y_ebuild + ".ebuild")
90
91 """
92 Ebuilds that inherit a "Live" eclass (darcs,subversion,git,cvs,etc..) should
93 @@ -914,7 +914,7 @@ for xpkg in effective_scanlist:
94 stats["LIVEVCS.stable"] += 1
95 fails["LIVEVCS.stable"].append(
96 "%s/%s.ebuild with stable keywords:%s " %
97 - (xpkg, y, bad_stable_keywords))
98 + (xpkg, y_ebuild, bad_stable_keywords))
99 del bad_stable_keywords
100
101 if keywords and not has_global_mask(pkg):
102 @@ -959,7 +959,7 @@ for xpkg in effective_scanlist:
103 baddepsyntax = False
104 badlicsyntax = False
105 badprovsyntax = False
106 - catpkg = catdir + "/" + y
107 + catpkg = catdir + "/" + y_ebuild
108
109 inherited_java_eclass = "java-pkg-2" in inherited or \
110 "java-pkg-opt-2" in inherited
111 @@ -1086,7 +1086,7 @@ for xpkg in effective_scanlist:
112
113 for mypos in range(len(myuse)):
114 stats["IUSE.invalid"] += 1
115 - fails["IUSE.invalid"].append(xpkg + "/" + y + ".ebuild: %s" % myuse[mypos])
116 + fails["IUSE.invalid"].append(xpkg + "/" + y_ebuild + ".ebuild: %s" % myuse[mypos])
117
118 # Check for outdated RUBY targets
119 old_ruby_eclasses = ["ruby-ng", "ruby-fakegem", "ruby"]
120 @@ -1112,7 +1112,7 @@ for xpkg in effective_scanlist:
121 # function will remove it without removing values.
122 if lic not in liclist and lic != "||":
123 stats["LICENSE.invalid"] += 1
124 - fails["LICENSE.invalid"].append(xpkg + "/" + y + ".ebuild: %s" % lic)
125 + fails["LICENSE.invalid"].append(xpkg + "/" + y_ebuild + ".ebuild: %s" % lic)
126 elif lic in liclist_deprecated:
127 stats["LICENSE.deprecated"] += 1
128 fails["LICENSE.deprecated"].append("%s: %s" % (ebuild.relative_path, lic))
129 @@ -1129,11 +1129,11 @@ for xpkg in effective_scanlist:
130 if myskey not in kwlist:
131 stats["KEYWORDS.invalid"] += 1
132 fails["KEYWORDS.invalid"].append(
133 - "%s/%s.ebuild: %s" % (xpkg, y, mykey))
134 + "%s/%s.ebuild: %s" % (xpkg, y_ebuild, mykey))
135 elif myskey not in profiles:
136 stats["KEYWORDS.invalid"] += 1
137 fails["KEYWORDS.invalid"].append(
138 - "%s/%s.ebuild: %s (profile invalid)" % (xpkg, y, mykey))
139 + "%s/%s.ebuild: %s (profile invalid)" % (xpkg, y_ebuild, mykey))
140
141 # restrict checks
142 myrestrict = None
143 @@ -1151,7 +1151,7 @@ for xpkg in effective_scanlist:
144 if mybadrestrict:
145 stats["RESTRICT.invalid"] += len(mybadrestrict)
146 for mybad in mybadrestrict:
147 - fails["RESTRICT.invalid"].append(xpkg + "/" + y + ".ebuild: %s" % mybad)
148 + fails["RESTRICT.invalid"].append(xpkg + "/" + y_ebuild + ".ebuild: %s" % mybad)
149 # REQUIRED_USE check
150 required_use = myaux["REQUIRED_USE"]
151 if required_use: