mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-27 08:31:44 +08:00
update 2026-06-17 06:07:53
This commit is contained in:
parent
3e2b32ac97
commit
4469f6343b
@ -13,7 +13,7 @@ LUCI_DEPENDS+=$(if $(CONFIG_USE_APK),+apk +luci-compat,+opkg)
|
||||
LUCI_EXTRA_DEPENDS:=luci-lib-taskd (>=1.0.19)
|
||||
LUCI_PKGARCH:=all
|
||||
|
||||
PKG_VERSION:=0.2.0-r1
|
||||
PKG_VERSION:=0.2.0-r2
|
||||
# PKG_RELEASE MUST be empty for luci.mk
|
||||
PKG_RELEASE:=
|
||||
|
||||
|
||||
@ -7,10 +7,18 @@ export PATH="$newpath"
|
||||
|
||||
# if url starts with $IS_ORIG_SERVER, replace it with $IS_MIRROR_SERVER
|
||||
if [ -n "$IS_ORIG_SERVER" ] && [ -n "$IS_MIRROR_SERVER" ]; then
|
||||
for i in "$@"; do
|
||||
if [[ "$i" == "$IS_ORIG_SERVER"* ]]; then
|
||||
set -- "${@/$i/$IS_MIRROR_SERVER${i#$IS_ORIG_SERVER}}"
|
||||
fi
|
||||
n=$#
|
||||
while [ "$n" -gt 0 ]; do
|
||||
i="$1"
|
||||
shift
|
||||
case "$i" in
|
||||
"$IS_ORIG_SERVER"/*.apk|\
|
||||
"$IS_ORIG_SERVER"/*.ipk)
|
||||
i="$IS_MIRROR_SERVER/${i#$IS_ORIG_SERVER/}"
|
||||
;;
|
||||
esac
|
||||
set -- "$@" "$i"
|
||||
n=$((n - 1))
|
||||
done
|
||||
fi
|
||||
export -n IS_ORIG_SERVER IS_MIRROR_SERVER
|
||||
|
||||
@ -7,10 +7,18 @@ export PATH="$newpath"
|
||||
|
||||
# if url starts with $IS_ORIG_SERVER, replace it with $IS_MIRROR_SERVER
|
||||
if [ -n "$IS_ORIG_SERVER" ] && [ -n "$IS_MIRROR_SERVER" ]; then
|
||||
for i in "$@"; do
|
||||
if [[ "$i" == "$IS_ORIG_SERVER"* ]]; then
|
||||
set -- "${@/$i/$IS_MIRROR_SERVER${i#$IS_ORIG_SERVER}}"
|
||||
fi
|
||||
n=$#
|
||||
while [ "$n" -gt 0 ]; do
|
||||
i="$1"
|
||||
shift
|
||||
case "$i" in
|
||||
"$IS_ORIG_SERVER"/*.apk|\
|
||||
"$IS_ORIG_SERVER"/*.ipk)
|
||||
i="$IS_MIRROR_SERVER/${i#$IS_ORIG_SERVER/}"
|
||||
;;
|
||||
esac
|
||||
set -- "$@" "$i"
|
||||
n=$((n - 1))
|
||||
done
|
||||
fi
|
||||
export -n IS_ORIG_SERVER IS_MIRROR_SERVER
|
||||
|
||||
Loading…
Reference in New Issue
Block a user