From 4866b8f1bc4cc4c089916ea5cd4b6d44691e8c6c Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Fri, 26 Feb 2010 22:10:43 +0100 Subject: Prepare further checks on metadata.xml --- pym/repoman/utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/repoman') diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 8a2c0f0c6..d30552ed4 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -112,14 +112,14 @@ def have_profile_dir(path, maxdepth=3, filename="profiles.desc"): path = normalize_path(path + "/..") maxdepth -= 1 -def parse_metadata_use(mylines, uselist=None): +def parse_metadata_use(metadata_xml_content, uselist=None): """ Records are wrapped in XML as per GLEP 56 returns a dict of the form a list of flags""" if uselist is None: uselist = [] try: - metadatadom = minidom.parse(mylines) + metadatadom = minidom.parseString(metadata_xml_content) except ExpatError as e: raise exception.ParseError("metadata.xml: %s" % (e,)) -- cgit v1.2.3-1-g7c22