mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Merge branch 'patch-23' of https://github.com/Vexatos/OpenComputers into master-MC1.7.10
This commit is contained in:
commit
1bda68f59d
@ -505,6 +505,7 @@ local function installPackage(pack,path,update)
|
|||||||
term.write("Done.\n")
|
term.write("Done.\n")
|
||||||
saveToFile(tPacks)
|
saveToFile(tPacks)
|
||||||
print("Successfully installed package "..pack)
|
print("Successfully installed package "..pack)
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
local function uninstallPackage(pack)
|
local function uninstallPackage(pack)
|
||||||
@ -565,7 +566,7 @@ if options.iKnowWhatIAmDoing then
|
|||||||
provideInfo(args[2])
|
provideInfo(args[2])
|
||||||
elseif args[1] == "install" then
|
elseif args[1] == "install" then
|
||||||
if not getInternet() then return end
|
if not getInternet() then return end
|
||||||
installPackage(args[2],args[3],false)
|
return installPackage(args[2],args[3],false)
|
||||||
elseif args[1] == "update" then
|
elseif args[1] == "update" then
|
||||||
if not getInternet() then return end
|
if not getInternet() then return end
|
||||||
updatePackage(args[2])
|
updatePackage(args[2])
|
||||||
@ -631,6 +632,10 @@ if not result then
|
|||||||
error(reason, 0)
|
error(reason, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not reason then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
print("All done! Please remove the Floppy Disk used for installation! Reboot now? [Y/n]")
|
print("All done! Please remove the Floppy Disk used for installation! Reboot now? [Y/n]")
|
||||||
local result = io.read()
|
local result = io.read()
|
||||||
if not result or result == "" or result:sub(1, 1):lower() == "y" then
|
if not result or result == "" or result:sub(1, 1):lower() == "y" then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user