gluon-core: upgrade: don't print an error message on systems without opkg

This commit is contained in:
Matthias Schiffer 2017-01-19 13:10:57 +01:00
parent cb33d518c6
commit 0a8e028e8f
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

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