vim-update.sh - fixing bug with submiting update (update got submitted for previous version)
This commit is contained in:
parent
35f072504c
commit
0e06071326
@ -6,6 +6,7 @@ releases=( "fc26" "fc26" "fc27" "fc28" )
|
|||||||
branches_count=4
|
branches_count=4
|
||||||
releases_regexp=fc25\\\|fc26\\\|fc27\\\|fc28
|
releases_regexp=fc25\\\|fc26\\\|fc27\\\|fc28
|
||||||
branches_index=0
|
branches_index=0
|
||||||
|
release_index=0
|
||||||
|
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
LANG=C
|
LANG=C
|
||||||
@ -91,13 +92,17 @@ 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`
|
||||||
|
# Cut the head of releases_regexp string
|
||||||
|
releases_regexp=${releases_regexp#*|}
|
||||||
|
|
||||||
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 \
|
bodhi updates new --user zdohnal --type enhancement --notes "The newest \
|
||||||
upstream commit" --request testing --autokarma --stable-karma 3 \
|
upstream commit" --request testing --autokarma --stable-karma 3 \
|
||||||
--unstable-karma -3 vim-${UPSTREAMMAJOR}-${LASTPLFILLED}-1.\
|
--unstable-karma -3 vim-${UPSTREAMMAJOR}-${LASTPLFILLED}-1.\
|
||||||
${releases[@]: $branches_index: 1}
|
${releases[@]: $release_index: 1}
|
||||||
|
let "release_index+=1"
|
||||||
else
|
else
|
||||||
echo "Error when building package in $branch"
|
echo "Error when building package in $branch"
|
||||||
exit 1
|
exit 1
|
||||||
@ -106,9 +111,6 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
echo "There are pending/testing updates, do not build package."
|
echo "There are pending/testing updates, do not build package."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cut first release
|
|
||||||
releases_regexp=${releases_regexp#*|}
|
|
||||||
|
|
||||||
for branch in "${branches[@]:(1)}";
|
for branch in "${branches[@]:(1)}";
|
||||||
do
|
do
|
||||||
# switch to branch
|
# switch to branch
|
||||||
@ -144,7 +146,8 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
bodhi updates new --user zdohnal --type enhancement --notes "The newest \
|
bodhi updates new --user zdohnal --type enhancement --notes "The newest \
|
||||||
upstream commit" --request testing --autokarma --stable-karma 3 \
|
upstream commit" --request testing --autokarma --stable-karma 3 \
|
||||||
--unstable-karma -3 vim-${UPSTREAMMAJOR}-${LASTPLFILLED}-1.\
|
--unstable-karma -3 vim-${UPSTREAMMAJOR}-${LASTPLFILLED}-1.\
|
||||||
${releases[@]: $branches_index: 1}
|
${releases[@]: $release_index: 1}
|
||||||
|
let "release_index+=1"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Error when building package for $branch"
|
echo "Error when building package for $branch"
|
||||||
@ -152,7 +155,7 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Increment index and cut first release
|
# Increment index and cut the head of releases_regexp string
|
||||||
let "branches_index+=1"
|
let "branches_index+=1"
|
||||||
releases_regexp=${releases_regexp#*|}
|
releases_regexp=${releases_regexp#*|}
|
||||||
done
|
done
|
||||||
|
5
vim.spec
5
vim.spec
@ -21,7 +21,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
|
||||||
@ -769,6 +769,9 @@ rm -rf %{buildroot}
|
|||||||
%{_datadir}/icons/locolor/*/apps/*
|
%{_datadir}/icons/locolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 19 2017 Zdenek Dohnal <zdohnal@redhat.com> - 8.0.1123-2
|
||||||
|
- vim-update.sh - fixing bug with submiting update (update got submitted for previous version)
|
||||||
|
|
||||||
* Mon Sep 18 2017 Karsten Hopp <karsten@redhat.com> 8.0.1123-1
|
* Mon Sep 18 2017 Karsten Hopp <karsten@redhat.com> 8.0.1123-1
|
||||||
- patchlevel 1123
|
- patchlevel 1123
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user