fix vim-update.sh - bodhi update wasn't created

This commit is contained in:
Zdenek Dohnal 2018-02-28 14:21:52 +01:00
parent c89db5c700
commit 6834328b36
2 changed files with 5 additions and 2 deletions

View File

@ -163,7 +163,7 @@ if [ $CHANGES -ne 0 ]; 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}"=="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

View File

@ -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
@ -730,6 +730,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
%{_datadir}/icons/locolor/*/apps/*
%changelog
* Wed Feb 28 2018 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.0.1543-2
- fix vim-update.sh - bodhi update wasn't created
* Tue Feb 27 2018 Karsten Hopp <karsten@redhat.com> 8.0.1543-1
- patchlevel 1543