summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/repoman/utilities.py3
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")