diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-06 14:43:30 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-06 14:43:30 -0700 |
commit | 84238b2d0912c68cc679d11ec1240140bb314da1 (patch) | |
tree | e5bd7b65735a9b5c99c269e343086ea41dea1cdd | |
parent | e5a6df64152a14285356b908e95022d0d7dc02a0 (diff) | |
download | portage-84238b2d0912c68cc679d11ec1240140bb314da1.tar.gz portage-84238b2d0912c68cc679d11ec1240140bb314da1.tar.bz2 portage-84238b2d0912c68cc679d11ec1240140bb314da1.zip |
Fix parse_metadata_use() to allow use elements containing no flag
elements since the DTD allows it. Thanks to Mark Loeser <Halcy0n@g.o>
for reporting.
-rw-r--r-- | pym/repoman/utilities.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index e957c84b2..5d32e0ce9 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -128,7 +128,8 @@ def parse_metadata_use(xml_tree): for usetag in usetags: flags = usetag.findall("flag") if not flags: - raise exception.ParseError("missing 'flag' tag(s)") + # DTD allows use elements containing no flag elements. + continue for flag in flags: pkg_flag = flag.get("name") |