From a64448b16bcb741bf872409b3d051035a28dd3f8 Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Sat, 21 May 2016 11:14:31 +0300 Subject: [PATCH] luci-base: Turn off pattern matching when generating distversion Otherwize the distrevision may be displayed twice if it contains some special matching patterns. (For example I am using "git-$hash" in my own OpenWrt branch.) Signed-off-by: Chuanhong Guo (cherry picked from commit c1f0a9971a0b75515996cd59dfaf70f3ff6cc624) --- modules/luci-base/src/mkversion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/src/mkversion.sh b/modules/luci-base/src/mkversion.sh index e3ef97448..e2d02c1c7 100755 --- a/modules/luci-base/src/mkversion.sh +++ b/modules/luci-base/src/mkversion.sh @@ -10,7 +10,7 @@ if pcall(dofile, "/etc/openwrt_release") and _G.DISTRIB_DESCRIPTION then distversion = _G.DISTRIB_DESCRIPTION if _G.DISTRIB_REVISION then distrevision = _G.DISTRIB_REVISION - if not distversion:find(distrevision) then + if not distversion:find(distrevision,1,true) then distversion = distversion .. " " .. distrevision end end -- 2.11.0