mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 05:14:10 -07:00
Support for sub-release
This commit is contained in:
parent
6f5fff2790
commit
9d4d002bd3
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,10 @@ else
|
||||||
ARCH=$(echo "$dpkg_data"|grep Architecture |cut -f 2 -d ' ')
|
ARCH=$(echo "$dpkg_data"|grep Architecture |cut -f 2 -d ' ')
|
||||||
VERSION=$(echo "$dpkg_data"|grep ^Version |cut -f 2 -d ' '|cut -f 1 -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 \-)
|
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")
|
DATE=$(date -d @$pkg_date +"%F")
|
||||||
TIME=$(date -d @$pkg_date +"%T")
|
TIME=$(date -d @$pkg_date +"%T")
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue