gluon-core: upgrade: don't print an error message on systems without opkg
This commit is contained in:
parent
cb33d518c6
commit
0a8e028e8f
@ -24,6 +24,7 @@ end
|
|||||||
|
|
||||||
local prefix = subst['%%n'] .. '_'
|
local prefix = subst['%%n'] .. '_'
|
||||||
|
|
||||||
|
if fs.access('/etc/opkg/distfeeds.conf') then
|
||||||
local distfeeds = {}
|
local distfeeds = {}
|
||||||
for line in io.lines('/etc/opkg/distfeeds.conf') do
|
for line in io.lines('/etc/opkg/distfeeds.conf') do
|
||||||
table.insert(distfeeds, line)
|
table.insert(distfeeds, line)
|
||||||
@ -56,3 +57,4 @@ if site.opkg and site.opkg.extra and next(site.opkg.extra) then
|
|||||||
else
|
else
|
||||||
os.remove('/etc/opkg/gluon.conf')
|
os.remove('/etc/opkg/gluon.conf')
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user