1 |
commit: e9dc56625152991ba535f5be3ab88fc7ec8dbcfc |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 22 17:42:42 2012 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 22 17:42:42 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e9dc5662 |
7 |
|
8 |
strip trailing whitespace |
9 |
|
10 |
No functional changes here. |
11 |
|
12 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
13 |
|
14 |
--- |
15 |
bin/archive-conf | 2 +- |
16 |
bin/ebuild-helpers/dodoc | 2 +- |
17 |
bin/ebuild-helpers/doinfo | 2 +- |
18 |
bin/ebuild-helpers/prepman | 2 +- |
19 |
bin/egencache | 2 +- |
20 |
bin/emerge-webrsync | 2 +- |
21 |
bin/glsa-check | 14 +++++++------- |
22 |
bin/misc-functions.sh | 10 +++++----- |
23 |
bin/repoman | 28 ++++++++++++++-------------- |
24 |
9 files changed, 32 insertions(+), 32 deletions(-) |
25 |
|
26 |
diff --git a/bin/archive-conf b/bin/archive-conf |
27 |
index af34db6..80fa308 100755 |
28 |
--- a/bin/archive-conf |
29 |
+++ b/bin/archive-conf |
30 |
@@ -35,7 +35,7 @@ except ImportError: |
31 |
for ix in range(len(md5sum)): |
32 |
hexform = hexform + "%02x" % ord(md5sum[ix]) |
33 |
return hexform.lower() |
34 |
- |
35 |
+ |
36 |
def perform_checksum(filename): |
37 |
f = open(filename, 'rb') |
38 |
blocksize=32768 |
39 |
|
40 |
diff --git a/bin/ebuild-helpers/dodoc b/bin/ebuild-helpers/dodoc |
41 |
index c551735..99122c4 100755 |
42 |
--- a/bin/ebuild-helpers/dodoc |
43 |
+++ b/bin/ebuild-helpers/dodoc |
44 |
@@ -13,7 +13,7 @@ fi |
45 |
|
46 |
if [ $# -lt 1 ] ; then |
47 |
__helpers_die "${0##*/}: at least one argument needed" |
48 |
- exit 1 |
49 |
+ exit 1 |
50 |
fi |
51 |
|
52 |
if ! ___eapi_has_prefix_variables; then |
53 |
|
54 |
diff --git a/bin/ebuild-helpers/doinfo b/bin/ebuild-helpers/doinfo |
55 |
index 355047f..2edbdc5 100755 |
56 |
--- a/bin/ebuild-helpers/doinfo |
57 |
+++ b/bin/ebuild-helpers/doinfo |
58 |
@@ -6,7 +6,7 @@ source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh |
59 |
|
60 |
if [[ -z $1 ]] ; then |
61 |
__helpers_die "${0##*/}: at least one argument needed" |
62 |
- exit 1 |
63 |
+ exit 1 |
64 |
fi |
65 |
|
66 |
if ! ___eapi_has_prefix_variables; then |
67 |
|
68 |
diff --git a/bin/ebuild-helpers/prepman b/bin/ebuild-helpers/prepman |
69 |
index 142d404..55a9483 100755 |
70 |
--- a/bin/ebuild-helpers/prepman |
71 |
+++ b/bin/ebuild-helpers/prepman |
72 |
@@ -8,7 +8,7 @@ if ! ___eapi_has_prefix_variables; then |
73 |
ED=${D} |
74 |
fi |
75 |
|
76 |
-if [[ -z $1 ]] ; then |
77 |
+if [[ -z $1 ]] ; then |
78 |
mandir="${ED}usr/share/man" |
79 |
else |
80 |
mandir="${ED}$1/man" |
81 |
|
82 |
diff --git a/bin/egencache b/bin/egencache |
83 |
index 9d88237..8870d99 100755 |
84 |
--- a/bin/egencache |
85 |
+++ b/bin/egencache |
86 |
@@ -474,7 +474,7 @@ class GenUseLocalDesc(object): |
87 |
self._portdb = portdb |
88 |
self._output = output |
89 |
self._preserve_comments = preserve_comments |
90 |
- |
91 |
+ |
92 |
def run(self): |
93 |
repo_path = self._portdb.porttrees[0] |
94 |
ops = {'<':0, '<=':1, '=':2, '>=':3, '>':4} |
95 |
|
96 |
diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync |
97 |
index e826ec4..76d31f5 100755 |
98 |
--- a/bin/emerge-webrsync |
99 |
+++ b/bin/emerge-webrsync |
100 |
@@ -429,7 +429,7 @@ do_latest_snapshot() { |
101 |
usage() { |
102 |
cat <<-EOF |
103 |
Usage: $0 [options] |
104 |
- |
105 |
+ |
106 |
Options: |
107 |
--revert=yyyymmdd Revert to snapshot |
108 |
-k, --keep Keep snapshots in DISTDIR (don't delete) |
109 |
|
110 |
diff --git a/bin/glsa-check b/bin/glsa-check |
111 |
index bfae0f9..b3eb146 100755 |
112 |
--- a/bin/glsa-check |
113 |
+++ b/bin/glsa-check |
114 |
@@ -114,7 +114,7 @@ glsalist = [] |
115 |
if "new" in params: |
116 |
glsalist = todolist |
117 |
params.remove("new") |
118 |
- |
119 |
+ |
120 |
if "all" in params: |
121 |
glsalist = completelist |
122 |
params.remove("all") |
123 |
@@ -183,7 +183,7 @@ def summarylist(myglsalist, fd1=sys.stdout, fd2=sys.stderr): |
124 |
fd1.write(")") |
125 |
if list_cve: |
126 |
fd1.write(" "+(",".join([r[:13] for r in myglsa.references if r[:4] in ["CAN-", "CVE-"]]))) |
127 |
- fd1.write("\n") |
128 |
+ fd1.write("\n") |
129 |
return 0 |
130 |
|
131 |
if mode == "list": |
132 |
@@ -267,7 +267,7 @@ if mode == "mail": |
133 |
import portage.mail, socket |
134 |
from io import StringIO |
135 |
from email.mime.text import MIMEText |
136 |
- |
137 |
+ |
138 |
# color doesn't make any sense for mail |
139 |
nocolor() |
140 |
|
141 |
@@ -275,7 +275,7 @@ if mode == "mail": |
142 |
myrecipient = portage.settings["PORTAGE_ELOG_MAILURI"].split()[0] |
143 |
else: |
144 |
myrecipient = "root@localhost" |
145 |
- |
146 |
+ |
147 |
if "PORTAGE_ELOG_MAILFROM" in portage.settings: |
148 |
myfrom = portage.settings["PORTAGE_ELOG_MAILFROM"] |
149 |
else: |
150 |
@@ -303,12 +303,12 @@ if mode == "mail": |
151 |
myglsa.dump(outstream=myfd) |
152 |
myattachments.append(MIMEText(str(myfd.getvalue()), _charset="utf8")) |
153 |
myfd.close() |
154 |
- |
155 |
+ |
156 |
mymessage = portage.mail.create_message(myfrom, myrecipient, mysubject, summary, myattachments) |
157 |
portage.mail.send_mail(portage.settings, mymessage) |
158 |
- |
159 |
+ |
160 |
sys.exit(0) |
161 |
- |
162 |
+ |
163 |
# something wrong here, all valid paths are covered with sys.exit() |
164 |
sys.stderr.write("nothing more to do\n") |
165 |
sys.exit(2) |
166 |
|
167 |
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh |
168 |
index db023e4..853489a 100755 |
169 |
--- a/bin/misc-functions.sh |
170 |
+++ b/bin/misc-functions.sh |
171 |
@@ -397,7 +397,7 @@ install_qa_check() { |
172 |
|
173 |
# Check for files built without respecting LDFLAGS |
174 |
if [[ "${LDFLAGS}" == *,--hash-style=gnu* ]] && \ |
175 |
- ! has binchecks ${RESTRICT} ; then |
176 |
+ ! has binchecks ${RESTRICT} ; then |
177 |
f=$(scanelf -qyRF '%k %p' -k .hash "${ED}" | sed -e "s:\.hash ::") |
178 |
if [[ -n ${f} ]] ; then |
179 |
echo "${f}" > "${T}"/scanelf-ignored-LDFLAGS.log |
180 |
@@ -620,8 +620,8 @@ install_qa_check() { |
181 |
done |
182 |
done |
183 |
|
184 |
- # When installing static libraries into /usr/lib and shared libraries into |
185 |
- # /lib, we have to make sure we have a linker script in /usr/lib along side |
186 |
+ # When installing static libraries into /usr/lib and shared libraries into |
187 |
+ # /lib, we have to make sure we have a linker script in /usr/lib along side |
188 |
# the static library, or gcc will utilize the static lib when linking :(. |
189 |
# http://bugs.gentoo.org/4411 |
190 |
abort="no" |
191 |
@@ -1121,10 +1121,10 @@ preinst_selinux_labels() { |
192 |
( |
193 |
eval "$(/usr/sbin/selinuxconfig)" || \ |
194 |
die "Failed to determine SELinux policy paths."; |
195 |
- |
196 |
+ |
197 |
addwrite /selinux/context |
198 |
addwrite /sys/fs/selinux/context |
199 |
- |
200 |
+ |
201 |
/usr/sbin/setfiles "${file_contexts_path}" -r "${D}" "${D}" |
202 |
) || die "Failed to set SELinux security labels." |
203 |
else |
204 |
|
205 |
diff --git a/bin/repoman b/bin/repoman |
206 |
index 91a9815..7ecdc6d 100755 |
207 |
--- a/bin/repoman |
208 |
+++ b/bin/repoman |
209 |
@@ -125,7 +125,7 @@ signal.signal(signal.SIGINT,exithandler) |
210 |
class RepomanHelpFormatter(optparse.IndentedHelpFormatter): |
211 |
"""Repoman needs it's own HelpFormatter for now, because the default ones |
212 |
murder the help text.""" |
213 |
- |
214 |
+ |
215 |
def __init__(self, indent_increment=1, max_help_position=24, width=150, short_first=1): |
216 |
optparse.HelpFormatter.__init__(self, indent_increment, max_help_position, width, short_first) |
217 |
|
218 |
@@ -135,7 +135,7 @@ class RepomanHelpFormatter(optparse.IndentedHelpFormatter): |
219 |
class RepomanOptionParser(optparse.OptionParser): |
220 |
"""Add the on_tail function, ruby has it, optionParser should too |
221 |
""" |
222 |
- |
223 |
+ |
224 |
def __init__(self, *args, **kwargs): |
225 |
optparse.OptionParser.__init__(self, *args, **kwargs) |
226 |
self.tail = "" |
227 |
@@ -169,7 +169,7 @@ def ParseArgs(argv, qahelp): |
228 |
'help' : 'Show this screen', |
229 |
'manifest' : 'Generate a Manifest (fetches files if necessary)', |
230 |
'manifest-check' : 'Check Manifests for missing or incorrect digests', |
231 |
- 'scan' : 'Scan directory tree for QA issues' |
232 |
+ 'scan' : 'Scan directory tree for QA issues' |
233 |
} |
234 |
|
235 |
mode_keys = list(modes) |
236 |
@@ -196,7 +196,7 @@ def ParseArgs(argv, qahelp): |
237 |
|
238 |
parser.add_option('-p', '--pretend', dest='pretend', default=False, |
239 |
action='store_true', help='don\'t commit or fix anything; just show what would be done') |
240 |
- |
241 |
+ |
242 |
parser.add_option('-q', '--quiet', dest="quiet", action="count", default=0, |
243 |
help='do not print unnecessary messages') |
244 |
|
245 |
@@ -244,7 +244,7 @@ def ParseArgs(argv, qahelp): |
246 |
parser.add_option('--without-mask', dest='without_mask', action='store_true', |
247 |
default=False, help='behave as if no package.mask entries exist (not allowed with commit mode)') |
248 |
|
249 |
- parser.add_option('--mode', type='choice', dest='mode', choices=list(modes), |
250 |
+ parser.add_option('--mode', type='choice', dest='mode', choices=list(modes), |
251 |
help='specify which mode repoman will run in (default=full)') |
252 |
|
253 |
parser.on_tail("\n " + green("Modes".ljust(20) + " Description\n")) |
254 |
@@ -279,7 +279,7 @@ def ParseArgs(argv, qahelp): |
255 |
|
256 |
if not opts.mode: |
257 |
opts.mode = 'full' |
258 |
- |
259 |
+ |
260 |
if opts.mode == 'ci': |
261 |
opts.mode = 'commit' # backwards compat shortcut |
262 |
|
263 |
@@ -329,7 +329,7 @@ qahelp={ |
264 |
"KEYWORDS.dropped":"Ebuilds that appear to have dropped KEYWORDS for some arch", |
265 |
"KEYWORDS.missing":"Ebuilds that have a missing or empty KEYWORDS variable", |
266 |
"KEYWORDS.stable":"Ebuilds that have been added directly with stable KEYWORDS", |
267 |
- "KEYWORDS.stupid":"Ebuilds that use KEYWORDS=-* instead of package.mask", |
268 |
+ "KEYWORDS.stupid":"Ebuilds that use KEYWORDS=-* instead of package.mask", |
269 |
"LICENSE.missing":"Ebuilds that have a missing or empty LICENSE variable", |
270 |
"LICENSE.virtual":"Virtuals that have a non-empty LICENSE variable", |
271 |
"DESCRIPTION.missing":"Ebuilds that have a missing or empty DESCRIPTION variable", |
272 |
@@ -1632,7 +1632,7 @@ for x in effective_scanlist: |
273 |
if check_changelog and "ChangeLog" not in checkdirlist: |
274 |
stats["changelog.missing"]+=1 |
275 |
fails["changelog.missing"].append(x+"/ChangeLog") |
276 |
- |
277 |
+ |
278 |
musedict = {} |
279 |
#metadata.xml file check |
280 |
if "metadata.xml" not in checkdirlist: |
281 |
@@ -1995,7 +1995,7 @@ for x in effective_scanlist: |
282 |
|
283 |
badlicsyntax = len([z for z in type_list if z == "LICENSE"]) |
284 |
badprovsyntax = len([z for z in type_list if z == "PROVIDE"]) |
285 |
- baddepsyntax = len(type_list) != badlicsyntax + badprovsyntax |
286 |
+ baddepsyntax = len(type_list) != badlicsyntax + badprovsyntax |
287 |
badlicsyntax = badlicsyntax > 0 |
288 |
badprovsyntax = badprovsyntax > 0 |
289 |
|
290 |
@@ -2025,7 +2025,7 @@ for x in effective_scanlist: |
291 |
|
292 |
for mypos in range(len(myuse)): |
293 |
stats["IUSE.invalid"]=stats["IUSE.invalid"]+1 |
294 |
- fails["IUSE.invalid"].append(x+"/"+y+".ebuild: %s" % myuse[mypos]) |
295 |
+ fails["IUSE.invalid"].append(x+"/"+y+".ebuild: %s" % myuse[mypos]) |
296 |
|
297 |
# license checks |
298 |
if not badlicsyntax: |
299 |
@@ -2127,7 +2127,7 @@ for x in effective_scanlist: |
300 |
# A missing profile will create an error further down |
301 |
# during the KEYWORDS verification. |
302 |
continue |
303 |
- |
304 |
+ |
305 |
for prof in profiles[arch]: |
306 |
|
307 |
if prof.status not in ("stable", "dev") or \ |
308 |
@@ -2192,7 +2192,7 @@ for x in effective_scanlist: |
309 |
suffix=suffix+"indev" |
310 |
|
311 |
for mytype in Package._dep_keys: |
312 |
- |
313 |
+ |
314 |
mykey = "dependency.bad" + suffix |
315 |
myvalue = myaux[mytype] |
316 |
if not myvalue: |
317 |
@@ -2403,7 +2403,7 @@ else: |
318 |
with repoman_popen("hg status --no-status --unknown .") as f: |
319 |
myunadded = f.readlines() |
320 |
myunadded = ["./" + elem.rstrip() for elem in myunadded] |
321 |
- |
322 |
+ |
323 |
# Mercurial doesn't handle manually deleted files as removed from |
324 |
# the repository, so the user need to remove them before commit, |
325 |
# using "hg remove [FILES]" |
326 |
@@ -2707,7 +2707,7 @@ else: |
327 |
elif vcs == "svn": |
328 |
if myfile not in expansion: |
329 |
continue |
330 |
- |
331 |
+ |
332 |
# Subversion keywords are case-insensitive in svn:keywords properties, but case-sensitive in contents of files. |
333 |
enabled_keywords = [] |
334 |
for k in expansion[myfile]: |