Skip to content

Commit

Permalink
Fix the bundle_artifact_path value and remove wrong comments for deb …
Browse files Browse the repository at this point in the history
…assemble (#4673)

Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored May 2, 2024
1 parent e3a28c3 commit 74ec6f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/assemble_workflow/bundle_linux_deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def build(self, name: str, dest: str, archive_path: str, build_cls: BuildManifes
subprocess.check_call(bundle_cmd, cwd=ext_dest, shell=True)

# Move artifact to repo root before being published to {dest}
# for dirpath, dirnames, filenames in os.walk(os.path.join('/tmp/opensearch*')):
# In debuild, the final package is created in the parent directory of the sources
# https://github.com/opensearch-project/opensearch-build/issues/4532#issuecomment-2091726868
bundle_artifact_path = f"/tmp/{self.filename}_{deb_version}_{deb_architecture(build_cls.architecture)}.deb"
logging.info(f"Found deb file: {bundle_artifact_path}")
shutil.move(f"/tmp/{self.filename}_{deb_version}_{deb_architecture(build_cls.architecture)}.deb", name)
shutil.move(bundle_artifact_path, name)

0 comments on commit 74ec6f0

Please sign in to comment.