diff --git a/vim-update.sh b/vim-update.sh index c9d4f79..31514d7 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -5,6 +5,7 @@ branches=( "rawhide" "f35" "f34" ) releases=( "fc36" "fc35" "fc34" ) regexps=( "fc36" "\|fc35" "\|fc34" ) bodhi_enabled=( "0" "1" "1" ) +needs_update=() #releases_regexp=fc28\\\|fc27\\\|fc28 branches_index=0 @@ -168,7 +169,7 @@ if [ $CHANGES -ne 0 ]; then if [ $? -eq 0 ]; then # if branch isn't rawhide or branch is enabled in bodhi, create update if [ $branch != "rawhide" ] || [ ${bodhi_enabled[@]: $bodhi_enabled_index: 1} -eq 1 ]; then - $debug bodhi updates new --user zdohnal --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} + needs_update+=("bodhi updates new --user $(rpmdev-packager) --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" @@ -201,4 +202,16 @@ $debug fedpkg switch-branch rawhide # prevents #1931099 $debug rm -rf vim-upstream +if [ ${#needs_update[@]} -eq 0 ] +then + exit 0 +fi + +echo "Issue the following commands once its gating tests pass:" + +for update in "${needs_update[@]}" +do + echo $update +done + exit 0