Add add_lib_ppl, make pkgm depend on it
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
local args={...}
|
local args={...}
|
||||||
local pkg=dofile("/lib/pkgm.lua")
|
local pkg=require "pkgm"
|
||||||
local flags={}
|
local flags={}
|
||||||
local ptr=#args
|
local ptr=#args
|
||||||
while ptr>0 do
|
while ptr>0 do
|
||||||
@@ -21,6 +21,7 @@ if flags.install_dir then
|
|||||||
end
|
end
|
||||||
if args[1]=="i" and args[2]~=nil then
|
if args[1]=="i" and args[2]~=nil then
|
||||||
local deps=pkg.dependencies(args[2])
|
local deps=pkg.dependencies(args[2])
|
||||||
|
local rstrt={false}
|
||||||
if not deps then
|
if not deps then
|
||||||
print("Already up to date, æpioform.")
|
print("Already up to date, æpioform.")
|
||||||
return
|
return
|
||||||
@@ -29,7 +30,7 @@ if args[1]=="i" and args[2]~=nil then
|
|||||||
print(table.concat(deps," "))
|
print(table.concat(deps," "))
|
||||||
print("\nPress the any key to continue.")
|
print("\nPress the any key to continue.")
|
||||||
os.pullEvent("char")
|
os.pullEvent("char")
|
||||||
pkg.pkginstmulti(deps)
|
pkg.pkginstmulti(deps,{["restart"]=rstrt})
|
||||||
print("Done!")
|
print("Done!")
|
||||||
elseif args[1]=="rm" and args[2]~=nil then
|
elseif args[1]=="rm" and args[2]~=nil then
|
||||||
table.remove(args,1)
|
table.remove(args,1)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
local mfs=dofile("/lib/mfs.lua")
|
local mfs=require "mfs"
|
||||||
local local_pkg_files=false
|
local local_pkg_files=false
|
||||||
local pkg_url="https://git.osmarks.tk/heavpoot/packages1/raw/branch/master/"
|
local pkg_url="https://git.osmarks.tk/heavpoot/packages1/raw/branch/master/"
|
||||||
local res={}
|
local res={}
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
["version"] = "0.1.2-1",
|
["version"] = "0.1.2-2",
|
||||||
["dependencies"] = {
|
["dependencies"] = {
|
||||||
"mfs",
|
"mfs",
|
||||||
|
"add_lib_ppl",
|
||||||
},
|
},
|
||||||
["description"] = "Package manager. For managing packages, bee incursions and other apionic systems.",
|
["description"] = "Package manager. For managing packages, bee incursions and other apionic systems.",
|
||||||
["files"] = {
|
["files"] = {
|
||||||
|
Reference in New Issue
Block a user