mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-08 14:41:14 +02:00
[pm-get] fix crash when a optional config file is missing
This commit is contained in:
@@ -337,7 +337,7 @@
|
||||
["pm_get"] = {
|
||||
["manifestVersion"] = "1.0",
|
||||
["package"] = "pm_get",
|
||||
["version"] = "1.3.1",
|
||||
["version"] = "1.3.2",
|
||||
["name"] = "pm get",
|
||||
["repo"] = "tree/master/pm",
|
||||
["description"] = "Download and install package for pm",
|
||||
|
Binary file not shown.
@@ -155,6 +155,7 @@ end
|
||||
|
||||
local function isAuto(package)
|
||||
local auto = false
|
||||
if (not filesystem.exists(AUTO_INSTALLED)) then return false end
|
||||
for line in io.lines(AUTO_INSTALLED) do
|
||||
if (line == package) then
|
||||
auto = true
|
||||
|
@@ -351,7 +351,7 @@
|
||||
dependencies = {
|
||||
["pm"] = "/"
|
||||
},
|
||||
version = "1.3.1"
|
||||
version = "1.3.2"
|
||||
name = "pm get",
|
||||
description = "Download and install package for pm",
|
||||
authors = "AR2000AR",
|
||||
|
Reference in New Issue
Block a user