summaryrefslogtreecommitdiff
path: root/mdbp/pbuilder.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2021-05-18 18:25:18 +0200
committerHelmut Grohne <helmut@subdivi.de>2021-05-18 18:25:18 +0200
commit43b4aafecbe355a72aed4ef2819423e7e8d8e600 (patch)
treec80a6cf92bf145de164f9b066a504e737b9d5f5b /mdbp/pbuilder.py
parentb6f54633e5b4cafa851fdec80e8e982d46109be3 (diff)
downloadmdbp-43b4aafecbe355a72aed4ef2819423e7e8d8e600.tar.gz
enable building a source package by name and version
If a package is specified by name, it is downloaded inside the chroot using the embedded deb-src uris. sbuild implements this natively, pbuilder does not implement this yet, but there is #988419 and mmdebstrap can make it work.
Diffstat (limited to 'mdbp/pbuilder.py')
-rw-r--r--mdbp/pbuilder.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdbp/pbuilder.py b/mdbp/pbuilder.py
index a5f734a..7208152 100644
--- a/mdbp/pbuilder.py
+++ b/mdbp/pbuilder.py
@@ -18,6 +18,8 @@ def main() -> None:
args = parser.parse_args()
build = args.buildjson
+ if "sourcename" in build["input"]:
+ raise ValueError("building a source package by name is not supported")
enablelog = build["output"].get("log", True)
if build.get("lintian", {}).get("run"):
raise ValueError("running lintian not supported")