vim-update.sh - unify if condition style
This commit is contained in:
parent
2f147cb213
commit
de932883a2
@ -159,11 +159,11 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
# a build only when higher branch build was ok.
|
# a build only when higher branch build was ok.
|
||||||
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
|
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}
|
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
|
||||||
|
5
vim.spec
5
vim.spec
@ -24,7 +24,7 @@ Summary: The VIM editor
|
|||||||
URL: http://www.vim.org/
|
URL: http://www.vim.org/
|
||||||
Name: vim
|
Name: vim
|
||||||
Version: %{baseversion}.%{patchlevel}
|
Version: %{baseversion}.%{patchlevel}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: Vim
|
License: Vim
|
||||||
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
|
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
|
||||||
Source1: vim.sh
|
Source1: vim.sh
|
||||||
@ -732,6 +732,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
|
|||||||
%{_datadir}/icons/locolor/*/apps/*
|
%{_datadir}/icons/locolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 06 2018 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.0.1573-2
|
||||||
|
- vim-update.sh - unify if condition style
|
||||||
|
|
||||||
* Tue Mar 06 2018 Karsten Hopp <karsten@redhat.com> 8.0.1573-1
|
* Tue Mar 06 2018 Karsten Hopp <karsten@redhat.com> 8.0.1573-1
|
||||||
- patchlevel 1573
|
- patchlevel 1573
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user