From 1fc8b5604778c46a8f867827077034f4660b74f2 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Fri, 23 Apr 2021 12:35:43 +0200 Subject: remove redundant values from schema The bd-uninstallable-explainer value null is equivalent to skipping the option and thus dropped. The network value "undefined" is equivalent to skipping the option and thus dropped. Reported-by: David Kalnischkies --- mdbp/pbuilder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mdbp/pbuilder.py') diff --git a/mdbp/pbuilder.py b/mdbp/pbuilder.py index 07dcac5..e59f262 100644 --- a/mdbp/pbuilder.py +++ b/mdbp/pbuilder.py @@ -20,9 +20,9 @@ def main() -> None: if build.get("lintian", {}).get("run"): raise ValueError("running lintian not supported") - if build.get("bd-uinstallable-explainer"): + if "bd-uninstallable-explainer" in build: raise ValueError("bd-uninstallable-explainer %r not supported" % - build.get("bd-uinstallable-explainer")) + build["bd-uinstallable-explainer"]) if build.get("buildpath"): raise ValueError("buildpath not supported") if build["distribution"] in ("sid", "unstable"): -- cgit v1.2.3