From 9d4d002bd3afd7edd719cbcac000408efdf3b2f5 Mon Sep 17 00:00:00 2001 From: dpeca Date: Fri, 15 Nov 2019 15:18:41 +0100 Subject: [PATCH] Support for sub-release --- bin/v-list-sys-vesta-updates | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/v-list-sys-vesta-updates b/bin/v-list-sys-vesta-updates index 62e2013b..69fcf9f8 100755 --- a/bin/v-list-sys-vesta-updates +++ b/bin/v-list-sys-vesta-updates @@ -78,6 +78,10 @@ else ARCH=$(echo "$dpkg_data"|grep Architecture |cut -f 2 -d ' ') VERSION=$(echo "$dpkg_data"|grep ^Version |cut -f 2 -d ' '|cut -f 1 -d \-) RELEASE=$(echo "$dpkg_data"|grep ^Version |cut -f 2 -d ' '|cut -f 2 -d \-) + SUBRELEASE=$(echo "$dpkg_data"|grep ^Version |cut -f 2 -d ' '|cut -f 3 -d \-) + if [ ! -z "$SUBRELEASE" ]; then + RELEASE="$RELEASE-$SUBRELEASE" + fi DATE=$(date -d @$pkg_date +"%F") TIME=$(date -d @$pkg_date +"%T") fi