summaryrefslogtreecommitdiffstats
path: root/pym/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-05 02:20:56 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-05 02:20:56 +0000
commitc617dc22778119d579c9a45f9051c469e04f1c6c (patch)
treefc9608a6599dbd482fe62c3c9ed2738074f15b50 /pym/repoman
parent6ee35062b014b5f2ba83492de35daaafb2dfe4b8 (diff)
downloadportage-c617dc22778119d579c9a45f9051c469e04f1c6c.tar.gz
portage-c617dc22778119d579c9a45f9051c469e04f1c6c.tar.bz2
portage-c617dc22778119d579c9a45f9051c469e04f1c6c.zip
Remove unused parse_use_local_desc() function.
svn path=/main/trunk/; revision=11330
Diffstat (limited to 'pym/repoman')
-rw-r--r--pym/repoman/utilities.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py
index c32f69fed..b537536bf 100644
--- a/pym/repoman/utilities.py
+++ b/pym/repoman/utilities.py
@@ -91,28 +91,6 @@ def have_profile_dir(path, maxdepth=3):
path = normalize_path(path + "/..")
maxdepth -= 1
-
-def parse_use_local_desc(mylines, usedict=None):
- """
- Records are of the form PACKAGE:FLAG - DESC
- returns a dict of the form {cpv:set(flags)}"""
- if usedict is None:
- usedict = {}
- for line_num, l in enumerate(mylines):
- if not l or l.startswith('#'):
- continue
- pkg_flag = l.split(None, 1) # None implies splitting on whitespace
- if not pkg_flag:
- continue
- try:
- pkg, flag = pkg_flag[0].split(":")
- except ValueError:
- raise exception.ParseError("line %d: Malformed input: '%s'" % \
- (line_num + 1, l.rstrip("\n")))
- usedict.setdefault(pkg, set())
- usedict[pkg].add(flag)
- return usedict
-
def parse_metadata_use(mylines, uselist=None):
"""
Records are wrapped in XML as per GLEP 56