From 82d7066d0f295fc2ea611b2e6ce5033fe7445617 Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 17 Jun 2022 22:28:42 -0300 Subject: [PATCH] alpine: No llamar a apk innecesariamente --- alpine.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/alpine.lua b/alpine.lua index 685795a..6c4372f 100644 --- a/alpine.lua +++ b/alpine.lua @@ -99,12 +99,8 @@ function alpine.make_world(rootfs_path, packages) utils.join_table(packages, "\n")) 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) 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 -- Returns nil when no failure, otherwise status code