diff --git a/vim-update.sh b/vim-update.sh index 142446c..dc3a892 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -27,7 +27,7 @@ if [ "x$1" == "x--force" ]; then fi 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 @@ -110,7 +110,7 @@ if [ $CHANGES -ne 0 ]; then | grep $releases_regexp` if [ "$pending_update" == "" ] && [ "$testing_update" == "" ]; then - fedpkg build + $debug fedpkg build if [ $? -eq 0 ]; then done_build=1 else @@ -163,11 +163,11 @@ if [ $CHANGES -ne 0 ]; then testing_update=`bodhi updates query --packages vim --status testing \ | grep $releases_regexp` if [ "$testing_update" == "" ] && [ $done_build -eq 1 ]; then - fedpkg build + $debug fedpkg build if [ $? -eq 0 ]; then # 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 - 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 else echo "Error when building package for $branch" diff --git a/vim.spec b/vim.spec index 5abf509..1384549 100644 --- a/vim.spec +++ b/vim.spec @@ -759,8 +759,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags %{_datadir}/icons/locolor/*/apps/* %changelog -* Fri May 18 2018 Zdenek Dohnal - 2:8.0.1848-2 -- vim-update.sh - update vimdir and baseversion +* Fri May 18 2018 Zdenek Dohnal - 8.0.1848-2 +- 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 8.0.1848-1 - patchlevel 1848