diff --git a/vim-update.sh b/vim-update.sh index 2bf69f4..de6ad87 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -159,11 +159,11 @@ if [ $CHANGES -ne 0 ]; then # a build only when higher branch build was ok. testing_update=`bodhi updates query --packages vim --status testing \ | grep $releases_regexp` - if [[ "$testing_update" == "" && $done_build -eq 1 ]]; then + if [ "$testing_update" == "" ] && [ $done_build -eq 1 ]; then 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 + 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} fi else diff --git a/vim.spec b/vim.spec index 05a345e..01ebbbe 100644 --- a/vim.spec +++ b/vim.spec @@ -24,7 +24,7 @@ Summary: The VIM editor URL: http://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} License: Vim Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2 Source1: vim.sh @@ -732,6 +732,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags %{_datadir}/icons/locolor/*/apps/* %changelog +* Tue Mar 06 2018 Zdenek Dohnal - 2:8.0.1573-2 +- vim-update.sh - unify if condition style + * Tue Mar 06 2018 Karsten Hopp 8.0.1573-1 - patchlevel 1573