diff --git a/vim-update.sh b/vim-update.sh index fc2776f..45c4e52 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"