mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-30 19:02:05 +00:00
abump: add option -f to set "fixes" in commit message
This commit is contained in:
parent
692a31793c
commit
ef25c6cf41
12
abump.in
12
abump.in
@ -26,6 +26,12 @@ do_bump() {
|
||||
fi
|
||||
|
||||
msg="$section/$pkgname: $upgrade to ${pkgver}${cve}"
|
||||
if [ -n "$fixes" ]; then
|
||||
msg="$msg
|
||||
|
||||
fixes #${fixes#\#}
|
||||
"
|
||||
fi
|
||||
echo "$msg"
|
||||
|
||||
( . ./APKBUILD; type package | grep -q function ) || die "package() missing"
|
||||
@ -42,19 +48,21 @@ do_bump() {
|
||||
|
||||
usage() {
|
||||
echo "$program - utility to bump pkgver in APKBUILDs"
|
||||
echo "usage: $program [-hR] [-s CVE-1,CVE-2,...]"
|
||||
echo "usage: $program [-hR] [-s CVE-1,CVE-2,...] [-f ISSUE]"
|
||||
echo ""
|
||||
echo " -h show this help"
|
||||
echo " -R run abuild with -R for recursive building"
|
||||
echo " -k keep existing packages"
|
||||
echo " -s security update"
|
||||
echo " -f fixes ISSUE"
|
||||
exit 0
|
||||
}
|
||||
|
||||
keep=
|
||||
recursive="-r"
|
||||
while getopts "hkRs:" opt; do
|
||||
while getopts "f:hkRs:" opt; do
|
||||
case $opt in
|
||||
f) fixes="${OPTARG}";;
|
||||
h) usage;;
|
||||
k) keep="-k";;
|
||||
R) recursive="-R";;
|
||||
|
Loading…
Reference in New Issue
Block a user