diff options
author | Helmut Grohne <helmut@subdivi.de> | 2021-06-24 13:53:31 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2021-06-24 13:53:31 +0200 |
commit | 312342b3e5eeee88dc47f555f11defc80d3d02e9 (patch) | |
tree | c8f4b3c8497446caef73ce54394b72663965a582 /mdbp/ssh.py | |
parent | c03690f53941e03a6f1f400da4d7313f36902426 (diff) | |
download | mdbp-312342b3e5eeee88dc47f555f11defc80d3d02e9.tar.gz |
rename a number of fields to become similar to debusine
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
Diffstat (limited to 'mdbp/ssh.py')
-rw-r--r-- | mdbp/ssh.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdbp/ssh.py b/mdbp/ssh.py index 50b7d25..4cb64cd 100644 --- a/mdbp/ssh.py +++ b/mdbp/ssh.py @@ -26,12 +26,12 @@ def produce_request_tar(buildjsonobj: JsonObject, del sendjsonobj["output"]["directory"] dscpath: typing.Optional[pathlib.Path] try: - dscpath = pathlib.Path(buildjsonobj["input"]["dscpath"]) + dscpath = pathlib.Path(buildjsonobj["input"]["source_package_path"]) except KeyError: dscpath = None else: sendjsonobj["input"] = sendjsonobj["input"].copy() - sendjsonobj["input"]["dscpath"] = dscpath.name + sendjsonobj["input"]["source_package_path"] = dscpath.name tar = tarfile.open(mode="w|", fileobj=fileobj) info = tarfile.TarInfo("build.json") sendjsonfile = io.BytesIO() |