Skip to content

Commit

Permalink
run.py: identify podman hiding behind podman-docker
Browse files Browse the repository at this point in the history
`podman-docker` installs a `docker` binary calling `podman`, we have to
call it to discover how to properly handle it.

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Nov 13, 2023
1 parent c42f801 commit 69eaa4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def copy_srpms(srpm_mount_dir, srpms):
def is_podman(runner):
if os.path.basename(runner) == "podman":
return True
if subprocess.getoutput(f"{runner} --version").startswith("podman "):
return True
return False

def main():
Expand Down

0 comments on commit 69eaa4b

Please sign in to comment.