Skip to content

Commit

Permalink
update apt-install model
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Sep 21, 2023
1 parent 7fd2f7d commit ad6b92e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ibek/support_cmds/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def apt_install(
"""
temp = Path("/tmp")

if only is AptWhen.run or AptWhen.both:
if (only is AptWhen.run) or (only is AptWhen.both):
add_list_to_file(RUNTIME_DEBS, debs)
if only is AptWhen.run:
return
Expand All @@ -228,6 +228,7 @@ def apt_install(
debs[i] = str(pkg_file)

command = (
"apt-get update && apt-get upgrade -y && "
"apt-get install -y --no-install-recommends "
+ " ".join(debs)
+ " ".join(ctx.args)
Expand Down

0 comments on commit ad6b92e

Please sign in to comment.