From 340e37da820c336a9753e83db5c32d9a573b61c4 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sat, 9 Nov 2019 22:01:48 -0700 Subject: [PATCH] package manager wip --- sys/apps/package.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/apps/package.lua b/sys/apps/package.lua index d1d963e..61c07af 100644 --- a/sys/apps/package.lua +++ b/sys/apps/package.lua @@ -81,7 +81,7 @@ local function install(name, isUpdate, ignoreDeps) if not isUpdate then if manifest.install then local s, m = pcall(function() - load(manifest.install, 'install', nil, makeSandbox()) + load(manifest.install, 'install', nil, makeSandbox())() end) if not s and m then _G.printError(m) @@ -141,7 +141,7 @@ if action == 'uninstall' then local manifest = Packages:getManifest(name) if manifest.uninstall then local s, m = pcall(function() - load(manifest.uninstall, 'uninstall', nil, makeSandbox()) + load(manifest.uninstall, 'uninstall', nil, makeSandbox())() end) if not s and m then _G.printError(m)