Obsolete
/
packaging
Archived
3
0
Fork 0

`apk add` inherits stdin when called.

master
Luka Vandervelden 2019-09-02 16:40:33 +02:00
parent f495fdc520
commit a6b32e3420
1 changed files with 6 additions and 1 deletions

View File

@ -127,7 +127,12 @@ begin
if dependencies.size > 0
# FIXME: Well probably want to have backends other than apk at some point.
r = context.sh "apk add #{ENV["APK_FLAGS"]? || "-i"} #{dependencies.join " "}"
opts = ["add"] + (ENV["APK_FLAGS"]? || "-i").split(/[ \t]+/) + dependencies
puts "+ apk #{opts.join " "}"
r = Process.run "apk", opts,
output: Process::Redirect::Inherit,
input: Process::Redirect::Inherit,
error: Process::Redirect::Inherit
if r.exit_status != 0
STDERR.puts "!! Running apk failed!"
exit 8