mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-08 22:51:14 +02:00
[pm-get] update pm/pm--get with fixes made while porting it for CC
This commit is contained in:
@@ -77,6 +77,7 @@ function pm.getInstalled(includeNonPurged)
|
||||
local prefix = "%.files$"
|
||||
if (includeNonPurged) then prefix = "%.manifest$" end
|
||||
local installed = {}
|
||||
if (not filesystem.exists("/etc/pm/info")) then filesystem.makeDirectory("/etc/pm/info") end
|
||||
for file in filesystem.list("/etc/pm/info/") do
|
||||
local packageName = file:match("(.+)" .. prefix)
|
||||
if (packageName) then
|
||||
|
Reference in New Issue
Block a user