Skip to content
Snippets Groups Projects
Commit 13c61d93 authored by Julian's avatar Julian Committed by Matthias Schiffer
Browse files

gluon-core: fix pattern %v in opkg URLs (#1087)

parent 6a0ca58f
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,13 @@ local util = require 'gluon.util'
local subst = {}
local f = io.popen('. /etc/openwrt_release; echo "$DISTRIB_CODENAME"; echo "$DISTRIB_TARGET"; echo "$DISTRIB_ARCH"')
local f = io.popen('. /etc/openwrt_release; echo "$DISTRIB_CODENAME"; echo "$DISTRIB_RELEASE"; echo "$DISTRIB_TARGET"; echo "$DISTRIB_ARCH"')
subst['%%n'] = f:read()
subst['%%v'] = f:read():gsub('-SNAPSHOT', '')
subst['%%S'] = f:read()
subst['%%A'] = f:read()
f:close()
subst['%%v'] = util.trim(fs.readfile('/etc/openwrt_version'))
subst['%%GS'] = site.site_code
subst['%%GV'] = util.trim(fs.readfile('/lib/gluon/gluon-version'))
subst['%%GR'] = util.trim(fs.readfile('/lib/gluon/release'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment