Commit f1510d45 authored by Vitaly Lipatov's avatar Vitaly Lipatov

check version if NEEDETERBUILD contains needed version

parent 912d11ba
Name: etersoft-build-utils
Version: 1.6.1
Version: 1.6.2
Release: alt1
Summary: A set of build rpm utilities
......@@ -11,7 +11,7 @@ Url: http://www.freesource.info/wiki/AltLinux/Razrabotchiku/SborkaPaketov
Packager: Vitaly Lipatov <lav@altlinux.ru>
# git-clone http://git.altlinux.org/people/lav/packages/etersoft-build-utils.git
Source: %name-%version.tar
Source: ftp://updates.etersoft.ru/pub/Etersoft/WINE@Etersoft/last/sources/tarball/%name-%version.tar
BuildArchitectures: noarch
......@@ -61,6 +61,9 @@ RECOMMENDED packages: gcc-c++ perl-libwww ccache elinks mutt hasher curl
%config(noreplace) %_sysconfdir/eterbuild/repos
%changelog
* Thu Jul 09 2009 Vitaly Lipatov <lav@altlinux.ru> 1.6.2-alt1
- add needed version checking (as param like 162 to /eterbuild or /common)
* Thu Jul 09 2009 Vitaly Lipatov <lav@altlinux.ru> 1.6.1-alt1
- rpmbs: add ssh target support for ETERDESTSRPM
- fix backports version (altbug#20431)
......
......@@ -6,6 +6,6 @@
ETERBUILDETC=/etc/eterbuild
ETERBUILDDIR=/usr/share/eterbuild
. /usr/share/eterbuild/functions/common $@
. /usr/share/eterbuild/functions/common
load_mod rpm
......@@ -90,9 +90,9 @@ load_mod()
load_mod config gettext alt spec
# check for needed version
if [ -n "$1" ] ; then
if [ "$1" -lt "$ETERBUILDVERSION" ] ; then
echo "Obsoleted version of etersoft-build-utils version is used. Please upgrade it to $1 version."
if [ -n "$NEEDETERBUILD" ] ; then
if [ "$NEEDETERBUILD" -lt "$ETERBUILDVERSION" ] ; then
echo "Obsoleted version of etersoft-build-utils version is used. Please upgrade it to $NEEDETERBUILD version."
exit 1
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment