diff options
author | Dubiousjim <dubiousjim@gmail.com> | 2013-07-05 00:21:28 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-09 07:08:41 +0000 |
commit | ecde203930001b0db3e05e7582cd10d437187f27 (patch) | |
tree | 8f049efba4164a9e8ab0ebeaeb1575c099d79a77 /abump.in | |
parent | 512d5fd551f6e138e532293080b5868b37cee66f (diff) | |
download | abuild-ecde203930001b0db3e05e7582cd10d437187f27.tar.gz abuild-ecde203930001b0db3e05e7582cd10d437187f27.tar.bz2 abuild-ecde203930001b0db3e05e7582cd10d437187f27.tar.xz abuild-ecde203930001b0db3e05e7582cd10d437187f27.zip |
abump: tweak upgrade/cvelist
Diffstat (limited to 'abump.in')
-rwxr-xr-x | abump.in | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -18,7 +18,8 @@ fi # version bump packages do_bump() { - local p rc=0 pkgname pkgver section upgrade cve message + local p rc=0 pkgname pkgver section message + local upgrade="${cvelist:+security }upgrade" for p; do pkgname=${p%-[0-9]*} pkgver=${p#${pkgname}-} @@ -27,14 +28,10 @@ do_bump() { set -e cd $HOME/aports/*/$pkgname - section=${PWD%/*} upgrade="upgrade" cve= + section=${PWD%/*} section=${section##*/} - if [ -n "$cvelist" ]; then - upgrade="security upgrade" - cve=" ($cvelist)" - fi - message="$section/$pkgname: $upgrade to ${pkgver}${cve}" + message="$section/$pkgname: $upgrade to ${pkgver}${cvelist}" if [ -n "$fixes" ]; then message="$message @@ -86,7 +83,7 @@ fi eval set -- "$args" while true; do case $1 in - -s|--security) cvelist="$2"; shift;; + -s|--security) cvelist=" ($2)"; shift;; -f|--fixes) fixes="$2"; shift;; -R|--recursive) recursive="-R";; -k|--keep) keep="-k";; |