1 |
commit: b25ce9b03c74eee0a10341f65c3219f77d177150 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 2 03:42:06 2013 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 03:42:06 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b25ce9b0 |
7 |
|
8 |
repoman: fix separator variable name |
9 |
|
10 |
--- |
11 |
bin/repoman | 10 +++++----- |
12 |
1 files changed, 5 insertions(+), 5 deletions(-) |
13 |
|
14 |
diff --git a/bin/repoman b/bin/repoman |
15 |
index 07f0adc..19e8073 100755 |
16 |
--- a/bin/repoman |
17 |
+++ b/bin/repoman |
18 |
@@ -2360,20 +2360,20 @@ del console_writer, f, style_file |
19 |
qa_output = qa_output.getvalue() |
20 |
qa_output = qa_output.splitlines(True) |
21 |
|
22 |
-def grouplist(mylist, seperator="/"): |
23 |
- """(list,seperator="/") -- Takes a list of elements; groups them into |
24 |
+def grouplist(mylist, separator="/"): |
25 |
+ """(list,separator="/") -- Takes a list of elements; groups them into |
26 |
same initial element categories. Returns a dict of {base:[sublist]} |
27 |
From: ["blah/foo","spork/spatula","blah/weee/splat"] |
28 |
To: {"blah":["foo","weee/splat"], "spork":["spatula"]}""" |
29 |
mygroups = {} |
30 |
for x in mylist: |
31 |
- xs = x.split(seperator) |
32 |
+ xs = x.split(separator) |
33 |
if xs[0] == ".": |
34 |
xs = xs[1:] |
35 |
if xs[0] not in mygroups: |
36 |
- mygroups[xs[0]] = [seperator.join(xs[1:])] |
37 |
+ mygroups[xs[0]] = [separator.join(xs[1:])] |
38 |
else: |
39 |
- mygroups[xs[0]] += [seperator.join(xs[1:])] |
40 |
+ mygroups[xs[0]] += [separator.join(xs[1:])] |
41 |
return mygroups |
42 |
|
43 |
suggest_ignore_masked = False |