summaryrefslogtreecommitdiff
path: root/mdbp/build_schema.json
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/build_schema.json
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/build_schema.json')
-rw-r--r--mdbp/build_schema.json15
1 files changed, 15 insertions, 0 deletions
diff --git a/mdbp/build_schema.json b/mdbp/build_schema.json
index d971f0d..e7c203c 100644
--- a/mdbp/build_schema.json
+++ b/mdbp/build_schema.json
@@ -31,6 +31,21 @@
"description": "a mapping of checksum algorithms to the expected values"
}
}
+ }, {
+ "required": [ "sourcename" ],
+ "additionalProperties": false,
+ "properties": {
+ "sourcename": {
+ "type": "string",
+ "pattern": "^[a-z0-9][a-z0-9.+-]*$",
+ "description": "name of a source package to fetch from the configured distribution"
+ },
+ "version": {
+ "type": "string",
+ "pattern": "^([0-9]+:)?[a-zA-Z0-9.+~-]+$",
+ "description": "request a particular version of the source package"
+ }
+ }
} ]
},
"distribution": {