mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-04 07:38:50 +03:00
updater: Fix get_pkg_version for OpenWrt 25
This commit is contained in:
@@ -81,7 +81,7 @@ function get_pkg_version
|
||||
fi
|
||||
fi
|
||||
if [ "$PKG_MGR" = apk ]; then
|
||||
line=$( apk info -e "$pkg_name" 2>/dev/null || true )
|
||||
line=$( apk info -s "$pkg_name" 2>/dev/null | head -n 1 | awk '{print $1}' || true )
|
||||
if [ -n "$line" ]; then
|
||||
base=${line%-r[0-9]*}
|
||||
ver=${base##*-}
|
||||
|
||||
Reference in New Issue
Block a user