summaryrefslogtreecommitdiff
path: root/mdbp/common.py
AgeCommit message (Collapse)Author
2021-07-06mmdebstrap and sbuild shall agree on what build_path meansHelmut Grohne
While mmdebstrap would extract the package precisely to the build_path, sbuild would create a subdirectory <source>-<upstream_version> inside the build_path. Changing sbuild to do the mmdebstrap behaviour looks next to impossible, so this commit changes mmdebstrap to behave like sbuild. pbuilder also allows changing the build_path in principle. The documented BUILDDIR variable works quite similar to the sbuild option --build-path. pbuilder also allows changing the sub directory using the undocumented BUILDSUBDIR variable. That's another reason to do it like sbuild.
2021-06-24rename a number of fields to become similar to debusineHelmut Grohne
debusine describes a PackageBuildTask in docs/devel/ontology.rst. Changes performed herein: * dscpath -> source_package_path * dscuri -> source_package_url * buildarch -> build_architecture * hostarch -> host_architecture * options -> build_options * profiles -> build_profiles * buildpath -> build_path
2021-06-15allow passing custom options to pbuilder and sbuildHelmut Grohne
2021-05-27correctly handle integer values for .parallelHelmut Grohne
Fixes: 29859ef384a5 ("support a new field "parallel"")
2021-05-27add new field .output.artifacts to schemaHelmut Grohne
Using the field you can specify an ORed set of positive glob-style patterns for artifacts to retain in the .output.directory. It defaults to including all artifacts.
2021-05-20common: simplify code using contextlib.suppressHelmut Grohne
2021-05-18mmdebstrap: reimplement build hook recursivelyHelmut Grohne
Instead of writing a complex shell script in a limited sub-language of shell, call out to ourselves and implement the build functionality in Python.
2021-05-11add ssh remote backend and streamapi wrapperHelmut Grohne
The ssh backend calls into another host and passes all information on stdin/stdout/stderr. To do so, it uses a streamapi wrapper on the remote side that itself calls into a regular backend.
2021-05-09support a new field "parallel"Helmut Grohne
It is basically the parallel field from DEB_BUILD_OPTION which a special value "auto" that is converted to the CPU count.
2021-04-22fix relative path resolutionHelmut Grohne
For .input.dscpath, a relative path is supposed to be relative to the json file, but it was relative to cwd. For .output.directory, the matter was unspecified, but should actually work in the same way. Adapt implementation to documentation and fix the missing specification.
2021-04-18initial checkin of mdbpHelmut Grohne
Proof-of-concept status. Some things work.