Commit 7881bfa3 authored by mcmodder's avatar mcmodder
Browse files

Чутка изменили pacman

Продолжаем доработку pacman2, доделали локальные версии... почти
parent d2278033
Pipeline #181 passed with stage
in 12 seconds
......@@ -130,7 +130,7 @@ if not fs.exists("/etc/pacman/repolist") then
if not fs.isDirectory("/etc/pacman") then fs.makeDirectory("/etc/pacman") end
local repoFile = io.open("/etc/pacman/repolist", "w")
if repoFile then
repoFile:write("http://api.mcmodder.ru/repo.txt\n")
repoFile:write("https://api.mcmodder.ru/repo.txt\n")
repoFile:close()
else
error("Can't write /etc/pacman/repolist!")
......
......@@ -160,12 +160,26 @@ if ops.Q or ops.query then
end
end
elseif ops.f then
for _,arg in pairs(args) do
if installed[arg] then
--something
print("INDEV")
else
print("Error: package "..arg.." not found")
end
end
else
for app in pairs(installed) do
print(app)
end
end
elseif ops.S or ops.sync then
local foundArgs = 0
for _,value in pairs({"d","i","y","s","u","f"}) do if ops[value] then foundArgs=foundArgs+1 end end
if foundArgs > 1 then
print("Please use -s, -i or -f, not all at one time")
os.exit()
end
elseif ops.R or ops.remove then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment