From 3e31826a83fa8628d4a8bbee903693f3cef85478 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Tue, 28 Jun 2022 14:28:14 +0200 Subject: [PATCH] vim-update.sh: F36+ bodhi-client doesnt have --user --- vim-update.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vim-update.sh b/vim-update.sh index fc2776f5..45c4e520 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -119,6 +119,11 @@ if [ $CHANGES -ne 0 ]; then for branch in "${branches[@]:(1)}"; do + if [ "x$branch" == "xf35" ] + then + BODHI_USER="--user $(id -un)" + fi + # switch to branch $debug fedpkg switch-branch $branch @@ -164,7 +169,7 @@ if [ $CHANGES -ne 0 ]; then # not have an update in testing if [ $branch != "rawhide" ] || [ ${bodhi_enabled[@]: $bodhi_enabled_index: 1} -eq 1 ]; then # uses 'id' value for updates -> your username in OS must match with your username in Fedora accounts - $debug bodhi updates new --user $(id -un) --type enhancement --notes "The newest upstream commit" --request testing --autotime --autokarma --stable-karma 3 --unstable-karma -3 vim-${UPSTREAMMAJOR}.${LASTPLFILLED}-1.${releases[@]: $release_index: 1} + $debug bodhi updates new ${BODHI_USER} --type enhancement --notes "The newest upstream commit" --request testing --autotime --autokarma --stable-karma 3 --unstable-karma -3 vim-${UPSTREAMMAJOR}.${LASTPLFILLED}-1.${releases[@]: $release_index: 1} fi else echo "Error when building package for $branch"