update compare version
This commit is contained in:
@@ -60,10 +60,9 @@ function prepare(){
|
|||||||
ABL_VERSION="9"
|
ABL_VERSION="9"
|
||||||
PKG_VER_APTSS=`get_version_from_source_list_file ${PKG_NAME}:${ARCH} /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore${ARCH_ANOTHERWAY}.list`
|
PKG_VER_APTSS=`get_version_from_source_list_file ${PKG_NAME}:${ARCH} /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore${ARCH_ANOTHERWAY}.list`
|
||||||
LINK=$(curl -s https://packages.debian.org/sid/${ARCH}/libc-bin/download | grep -o "http://ftp.cn.debian.org/debian/pool/main/g/glibc/libc-bin_.*_${ARCH}.deb")
|
LINK=$(curl -s https://packages.debian.org/sid/${ARCH}/libc-bin/download | grep -o "http://ftp.cn.debian.org/debian/pool/main/g/glibc/libc-bin_.*_${ARCH}.deb")
|
||||||
LINK_BASENAME=$(basename ${LINK})
|
version=$(echo "$LINK" | grep -oP '_\K\d+\.\d+-\d+(?=_)')
|
||||||
version="${LINK_BASENAME##*_}"
|
|
||||||
PKG_VER_UPSTREAM="${version%%_*}-${ABL_VERSION}"
|
PKG_VER_UPSTREAM="${version%%_*}-${ABL_VERSION}"
|
||||||
|
compare_version ${PKG_VER_APTSS} ${PKG_VER_UPSTREAM}
|
||||||
# Compare version will also give the value to $VERSION
|
# Compare version will also give the value to $VERSION
|
||||||
# Now we should have the $VERSION
|
# Now we should have the $VERSION
|
||||||
if [ -e $VERSION ];then
|
if [ -e $VERSION ];then
|
||||||
|
|||||||
Reference in New Issue
Block a user