Add add_lib_ppl, make pkgm depend on it
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user