1 |
commit: 7509930d67c24899a6bb41323048a3b9cd9011da |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 2 03:44:34 2013 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 03:44:34 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=7509930d |
7 |
|
8 |
repoman: remove unused grouplist function |
9 |
|
10 |
--- |
11 |
bin/repoman | 16 ---------------- |
12 |
1 files changed, 0 insertions(+), 16 deletions(-) |
13 |
|
14 |
diff --git a/bin/repoman b/bin/repoman |
15 |
index 07f0adc..5c58bea 100755 |
16 |
--- a/bin/repoman |
17 |
+++ b/bin/repoman |
18 |
@@ -2360,22 +2360,6 @@ 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 |
- same initial element categories. Returns a dict of {base:[sublist]} |
25 |
- From: ["blah/foo","spork/spatula","blah/weee/splat"] |
26 |
- To: {"blah":["foo","weee/splat"], "spork":["spatula"]}""" |
27 |
- mygroups = {} |
28 |
- for x in mylist: |
29 |
- xs = x.split(seperator) |
30 |
- if xs[0] == ".": |
31 |
- xs = xs[1:] |
32 |
- if xs[0] not in mygroups: |
33 |
- mygroups[xs[0]] = [seperator.join(xs[1:])] |
34 |
- else: |
35 |
- mygroups[xs[0]] += [seperator.join(xs[1:])] |
36 |
- return mygroups |
37 |
- |
38 |
suggest_ignore_masked = False |
39 |
suggest_include_dev = False |