summaryrefslogtreecommitdiff
path: root/abump.in
diff options
context:
space:
mode:
authorDubiousjim <dubiousjim@gmail.com>2013-07-05 00:21:28 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-09 07:08:41 +0000
commitecde203930001b0db3e05e7582cd10d437187f27 (patch)
tree8f049efba4164a9e8ab0ebeaeb1575c099d79a77 /abump.in
parent512d5fd551f6e138e532293080b5868b37cee66f (diff)
downloadabuild-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-xabump.in13
1 files changed, 5 insertions, 8 deletions
diff --git a/abump.in b/abump.in
index 1d4e1e4..581ed8d 100755
--- a/abump.in
+++ b/abump.in
@@ -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";;