1
0
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:
2025-01-25 16:13:21 +01:00
parent 3bf19fb24b
commit 69918492dd
8 changed files with 29 additions and 32 deletions

View File

@@ -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