diff --git a/pkgm/bin/pkgm.lua b/pkgm/bin/pkgm.lua index 72c4357..4918b61 100644 --- a/pkgm/bin/pkgm.lua +++ b/pkgm/bin/pkgm.lua @@ -1,5 +1,5 @@ local args={...} -local pkg=dofile("/lib/pkgm.lua") +local pkg=require "pkgm" local flags={} local ptr=#args while ptr>0 do @@ -21,6 +21,7 @@ if flags.install_dir then end if args[1]=="i" and args[2]~=nil then local deps=pkg.dependencies(args[2]) + local rstrt={false} if not deps then print("Already up to date, æpioform.") return @@ -29,7 +30,7 @@ if args[1]=="i" and args[2]~=nil then print(table.concat(deps," ")) print("\nPress the any key to continue.") os.pullEvent("char") - pkg.pkginstmulti(deps) + pkg.pkginstmulti(deps,{["restart"]=rstrt}) print("Done!") elseif args[1]=="rm" and args[2]~=nil then table.remove(args,1) diff --git a/pkgm/lib/pkgm.lua b/pkgm/lib/pkgm.lua index f9490a2..c5634c7 100644 --- a/pkgm/lib/pkgm.lua +++ b/pkgm/lib/pkgm.lua @@ -1,4 +1,4 @@ -local mfs=dofile("/lib/mfs.lua") +local mfs=require "mfs" local local_pkg_files=false local pkg_url="https://git.osmarks.tk/heavpoot/packages1/raw/branch/master/" local res={} diff --git a/pkgm/pkgmeta.ltn b/pkgm/pkgmeta.ltn index 178f3e0..2ed48c6 100644 --- a/pkgm/pkgmeta.ltn +++ b/pkgm/pkgmeta.ltn @@ -1,7 +1,8 @@ { - ["version"] = "0.1.2-1", + ["version"] = "0.1.2-2", ["dependencies"] = { "mfs", + "add_lib_ppl", }, ["description"] = "Package manager. For managing packages, bee incursions and other apionic systems.", ["files"] = {