vim-update.sh: Update to work with gating
This commit is contained in:
parent
2d44d5dc8c
commit
34c6d404eb
@ -5,6 +5,7 @@ branches=( "rawhide" "f35" "f34" )
|
|||||||
releases=( "fc36" "fc35" "fc34" )
|
releases=( "fc36" "fc35" "fc34" )
|
||||||
regexps=( "fc36" "\|fc35" "\|fc34" )
|
regexps=( "fc36" "\|fc35" "\|fc34" )
|
||||||
bodhi_enabled=( "0" "1" "1" )
|
bodhi_enabled=( "0" "1" "1" )
|
||||||
|
needs_update=()
|
||||||
#releases_regexp=fc28\\\|fc27\\\|fc28
|
#releases_regexp=fc28\\\|fc27\\\|fc28
|
||||||
|
|
||||||
branches_index=0
|
branches_index=0
|
||||||
@ -168,7 +169,7 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
# if branch isn't rawhide or branch is enabled in bodhi, create update
|
# 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
|
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
|
fi
|
||||||
else
|
else
|
||||||
echo "Error when building package for $branch"
|
echo "Error when building package for $branch"
|
||||||
@ -201,4 +202,16 @@ $debug fedpkg switch-branch rawhide
|
|||||||
# prevents #1931099
|
# prevents #1931099
|
||||||
$debug rm -rf vim-upstream
|
$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
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user