Add add_lib_ppl, make pkgm depend on it
This commit is contained in:
parent
22913f3a1d
commit
8f8a6d19a9
@ -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)
|
||||
|
@ -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={}
|
||||
|
@ -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"] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user