Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11330 - main/trunk/pym/repoman
Date: Tue, 05 Aug 2008 02:20:59
Message-Id: E1KQCAT-0001T7-7X@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-08-05 02:20:56 +0000 (Tue, 05 Aug 2008)
3 New Revision: 11330
4
5 Modified:
6 main/trunk/pym/repoman/utilities.py
7 Log:
8 Remove unused parse_use_local_desc() function.
9
10
11 Modified: main/trunk/pym/repoman/utilities.py
12 ===================================================================
13 --- main/trunk/pym/repoman/utilities.py 2008-08-05 02:15:16 UTC (rev 11329)
14 +++ main/trunk/pym/repoman/utilities.py 2008-08-05 02:20:56 UTC (rev 11330)
15 @@ -91,28 +91,6 @@
16 path = normalize_path(path + "/..")
17 maxdepth -= 1
18
19 -
20 -def parse_use_local_desc(mylines, usedict=None):
21 - """
22 - Records are of the form PACKAGE:FLAG - DESC
23 - returns a dict of the form {cpv:set(flags)}"""
24 - if usedict is None:
25 - usedict = {}
26 - for line_num, l in enumerate(mylines):
27 - if not l or l.startswith('#'):
28 - continue
29 - pkg_flag = l.split(None, 1) # None implies splitting on whitespace
30 - if not pkg_flag:
31 - continue
32 - try:
33 - pkg, flag = pkg_flag[0].split(":")
34 - except ValueError:
35 - raise exception.ParseError("line %d: Malformed input: '%s'" % \
36 - (line_num + 1, l.rstrip("\n")))
37 - usedict.setdefault(pkg, set())
38 - usedict[pkg].add(flag)
39 - return usedict
40 -
41 def parse_metadata_use(mylines, uselist=None):
42 """
43 Records are wrapped in XML as per GLEP 56