Skip to content

Commit

Permalink
hotfix(cd): workaround for ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion authored Nov 28, 2024
1 parent ef762bb commit ecfc625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/explain_manifest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def gather_files(path: str, image: str):
# rpm2archive has changed the behaviour to extract to stdout if stdout is not tty
code = os.system(
"""
rpm2archive %s | tar -C %s -xz
""" % (path, t.name))
rpm2archive %s | tar -C %s -xz || rpm2archive %s && tar -C %s -xf %s.tgz
""" % (path, t.name, path, t.name, path))
elif ext == ".gz":
code = os.system("tar -C %s -xf %s" % (t.name, path))

Expand Down

0 comments on commit ecfc625

Please sign in to comment.