summaryrefslogtreecommitdiff
path: root/mdbp/pbuilder.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2021-04-23 12:35:43 +0200
committerHelmut Grohne <helmut@subdivi.de>2021-04-23 12:35:43 +0200
commit1fc8b5604778c46a8f867827077034f4660b74f2 (patch)
tree438fca7e2b7595b248f7925ec6ee583efdaf3d01 /mdbp/pbuilder.py
parent3cf6fa1cc6e50fffbc75add3b5f55a7c91b42517 (diff)
downloadmdbp-1fc8b5604778c46a8f867827077034f4660b74f2.tar.gz
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 <donkult@debian.org>
Diffstat (limited to 'mdbp/pbuilder.py')
-rw-r--r--mdbp/pbuilder.py4
1 files changed, 2 insertions, 2 deletions
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"):