alpine: No llamar a apk innecesariamente
This commit is contained in:
parent
5ac76ae983
commit
82d7066d0f
1 changed files with 0 additions and 4 deletions
|
@ -99,12 +99,8 @@ function alpine.make_world(rootfs_path, packages)
|
||||||
utils.join_table(packages, "\n"))
|
utils.join_table(packages, "\n"))
|
||||||
if err then return err end
|
if err then return err end
|
||||||
|
|
||||||
local status = os.execute("sudo apk update --no-cache --root "..rootfs_path)
|
|
||||||
if not (status == 0) then return status end
|
|
||||||
local status = os.execute("sudo apk upgrade --clean-protected --no-cache --root "..rootfs_path)
|
local status = os.execute("sudo apk upgrade --clean-protected --no-cache --root "..rootfs_path)
|
||||||
if not (status == 0) then return status end
|
if not (status == 0) then return status end
|
||||||
local status = os.execute("sudo apk add --clean-protected --no-cache --root "..rootfs_path)
|
|
||||||
if not (status == 0) then return status end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Returns nil when no failure, otherwise status code
|
-- Returns nil when no failure, otherwise status code
|
||||||
|
|
Loading…
Reference in a new issue