Skip to content

Commit

Permalink
Overwrite stratisd sources
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Sep 7, 2023
1 parent 1ae5859 commit b53f3f9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions release_management/create_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,23 @@ def _stratisd_artifacts(namespace):

release_version = ReleaseVersion(source_version, pre_release_suffix)

edit_specfile(specfile_path, release_version=release_version)

source_tarfile = make_source_tarball("stratisd", release_version, output_path)
print(os.path.relpath(source_tarfile))

(vendor_tarfile_name, crate_path) = vendor(
manifest_abs_path,
release_version,
)

edit_specfile(
specfile_path,
release_version=release_version,
sources=[
os.path.basename(path)
for path in [source_tarfile, vendor_tarfile_name, crate_path]
],
)

os.rename(
crate_path,
os.path.join(output_path, f"stratisd-{release_version.to_crate_str()}.crate"),
Expand Down

0 comments on commit b53f3f9

Please sign in to comment.