privoxy: "list" does not work when there are 10+ entries
authorClark WANG (Home) <redacted>
Sun, 3 Jan 2016 15:10:33 +0000 (23:10 +0800)
committerClark WANG (Home) <redacted>
Sun, 3 Jan 2016 15:10:33 +0000 (23:10 +0800)
Signed-off-by: Clark Wang <redacted>
net/privoxy/Makefile
net/privoxy/files/privoxy.init

index 76f56156fa63d17ed020f35b461a50d8ae31aebd..8c5ca2c87ef30c72bbac5ca005e07c4785058ac4 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=privoxy
 PKG_VERSION:=3.0.23
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=privoxy-$(PKG_VERSION)-stable-src.tar.gz
 PKG_SOURCE_URL:=@SF/ijbswa
index b8d978fc34a2cc9acb5ab03ee9f0a78ffbeb484c..96660dd5d7a2c99e0ea73ddbf8d91311f643c561 100644 (file)
@@ -28,7 +28,7 @@ _uci2conf() {
                                # detect list options (LENGTH) and ignore
                                echo $__OPT | grep -i "_LENGTH" >/dev/null 2>&1 && return
                                # detect list options (ITEM) and ignore
-                               echo $__OPT | grep -i "_ITEM" >/dev/null 2>&1 && __OPT=$(echo $__OPT | sed -e "s#_ITEM.##g")
+                               echo $__OPT | grep -i "_ITEM" >/dev/null 2>&1 && __OPT=$(echo $__OPT | sed -e "s#_ITEM.*##g")
                                # uci only accept "_" but we need "-"
                                local __OPT=$(echo $__OPT | sed -e "s#_#-#g")
                                # write to config
git clone https://git.99rst.org/PROJECT