fix in vim-update.sh
This commit is contained in:
parent
cde03f09e1
commit
468749ccbb
@ -10,6 +10,7 @@ branches_count=4
|
|||||||
branches_index=0
|
branches_index=0
|
||||||
release_index=0
|
release_index=0
|
||||||
regexp_index=0
|
regexp_index=0
|
||||||
|
done_build=0
|
||||||
releases_regexp="${regexps[@]: regexp_index: 1}"
|
releases_regexp="${regexps[@]: regexp_index: 1}"
|
||||||
let "regexp_index+=1"
|
let "regexp_index+=1"
|
||||||
|
|
||||||
@ -106,7 +107,7 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
if [ "$pending_update" == "" ] && [ "$testing_update" == "" ]; then
|
if [ "$pending_update" == "" ] && [ "$testing_update" == "" ]; then
|
||||||
fedpkg build
|
fedpkg build
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; 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}
|
done_build=1
|
||||||
else
|
else
|
||||||
echo "Error when building package in $branch"
|
echo "Error when building package in $branch"
|
||||||
exit 1
|
exit 1
|
||||||
@ -152,7 +153,7 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
| grep $releases_regexp`
|
| grep $releases_regexp`
|
||||||
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 [ "$pending_update" == "" ] && [ "$testing_update" == "" ]; then
|
if [ "$pending_update" == "" ] && [ "$testing_update" == "" ] && [ $done_build -eq 1 ]; then
|
||||||
fedpkg build
|
fedpkg build
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
if [ $branch != "master" ]; then
|
if [ $branch != "master" ]; then
|
||||||
@ -162,6 +163,8 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
echo "Error when building package for $branch"
|
echo "Error when building package for $branch"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
done_build=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Increment index and cut the head of releases_regexp string
|
# Increment index and cut the head of releases_regexp string
|
||||||
|
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
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
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
|
||||||
@ -766,6 +766,9 @@ update-desktop-database &> /dev/null ||:
|
|||||||
%{_datadir}/icons/locolor/*/apps/*
|
%{_datadir}/icons/locolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 01 2017 Zdenek Dohnal <zdohnal@redhat.com> - 8.0.1360-2
|
||||||
|
- fix in vim-update.sh
|
||||||
|
|
||||||
* Fri Dec 01 2017 Karsten Hopp <karsten@redhat.com> 8.0.1360-1
|
* Fri Dec 01 2017 Karsten Hopp <karsten@redhat.com> 8.0.1360-1
|
||||||
- patchlevel 1360
|
- patchlevel 1360
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user