From a9ae12a7d3a69b72158ba5a76fe5d9f40db0138b Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 15 Feb 2013 12:30:25 +0000 Subject: [PATCH] Validator accepts if-0install-version attributes --- validator.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/validator.py b/validator.py index 549da14..87155c4 100644 --- a/validator.py +++ b/validator.py @@ -60,6 +60,13 @@ def checkElement(elem): if uri == XMLNS_NAMESPACE: continue # Namespace declarations are fine + if name == 'if-0install-version': + try: + model.VersionExpressionRestriction(value) # Check syntax + except model.SafeException as ex: + warn("Bad if-0install-version expression: %s", ex) + continue + if uri: info("Note: Skipping unknown (but namespaced) attribute '%s'", name) continue -- 2.11.4.GIT