vim-update.sh - enhance debugging of vim-update script

This commit is contained in:
Zdenek Dohnal 2018-05-18 13:30:12 +02:00
parent 59beea4849
commit 6e7834fef2
2 changed files with 7 additions and 6 deletions

View File

@ -27,7 +27,7 @@ if [ "x$1" == "x--force" ]; then
fi fi
DATE=`date +"%a %b %d %Y"` DATE=`date +"%a %b %d %Y"`
fedpkg switch-branch "${branches[@]: $branches_index: 1}" $debug fedpkg switch-branch "${branches[@]: $branches_index: 1}"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@ -110,7 +110,7 @@ if [ $CHANGES -ne 0 ]; then
| grep $releases_regexp` | grep $releases_regexp`
if [ "$pending_update" == "" ] && [ "$testing_update" == "" ]; then if [ "$pending_update" == "" ] && [ "$testing_update" == "" ]; then
fedpkg build $debug fedpkg build
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
done_build=1 done_build=1
else else
@ -163,11 +163,11 @@ if [ $CHANGES -ne 0 ]; then
testing_update=`bodhi updates query --packages vim --status testing \ testing_update=`bodhi updates query --packages vim --status testing \
| grep $releases_regexp` | grep $releases_regexp`
if [ "$testing_update" == "" ] && [ $done_build -eq 1 ]; then if [ "$testing_update" == "" ] && [ $done_build -eq 1 ]; then
fedpkg build $debug fedpkg build
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
# if branch isn't master or branch is enabled in bodhi, create update # if branch isn't master or branch is enabled in bodhi, create update
if [ $branch != "master" ] || [ ${bodhi_enabled[@]: $bodhi_enabled_index: 1} -eq 1 ]; then if [ $branch != "master" ] || [ ${bodhi_enabled[@]: $bodhi_enabled_index: 1} -eq 1 ]; then
bodhi updates new --user zdohnal --type enhancement --notes "The newest upstream commit" --request testing --autokarma --stable-karma 3 --unstable-karma -3 vim-${UPSTREAMMAJOR}.${LASTPLFILLED}-1.${releases[@]: $release_index: 1} $debug bodhi updates new --user zdohnal --type enhancement --notes "The newest upstream commit" --request testing --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"

View File

@ -759,8 +759,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
%{_datadir}/icons/locolor/*/apps/* %{_datadir}/icons/locolor/*/apps/*
%changelog %changelog
* Fri May 18 2018 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.0.1848-2 * Fri May 18 2018 Zdenek Dohnal <zdohnal@redhat.com> - 8.0.1848-2
- vim-update.sh - update vimdir and baseversion - vim-update.sh - update vimdir and baseversion(for major rebases)
- vim-update.sh - enhance debugging of vim-update script
* Thu May 17 2018 Karsten Hopp <karsten@redhat.com> 8.0.1848-1 * Thu May 17 2018 Karsten Hopp <karsten@redhat.com> 8.0.1848-1
- patchlevel 1848 - patchlevel 1848