Remove preinstall scripts which blocked updates from prev versions

This commit is contained in:
Evgeniy Patlan
2017-02-16 14:50:21 +02:00
parent 28a1870de9
commit 704b338f88
2 changed files with 0 additions and 18 deletions

View File

@@ -1,9 +0,0 @@
#!/bin/sh
INSTALLED=`dpkg-query -l | grep percona-toolkit | awk '{print $3}' | awk -F'.' '{print $1}'`
if [ $INSTALLED != "0" -a "x$INSTALLED" != "x3" ]; then
echo "** It is not possible to install percona-toolkit-3.0.0rc as it will replace already installed package"
echo "** Please note that percona-toolkit-3.0.0 is RC"
echo "** If you want to install it you need to remove already installed package"
exit 1
fi

View File

@@ -41,15 +41,6 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
find $RPM_BUILD_ROOT -type f -name 'percona-toolkit.pod' -exec rm -f {} ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%pre
INSTALLED=`rpm -q percona-toolkit | awk -F'-' '{print $3}' | awk -F'.' '{print $1}'`
if [ $INSTALLED < 3 ]; then
echo "** It is not possible to install percona-toolkit-3.0.0rc as it will replace already installed package"
echo "** Please note that percona-toolkit-3.0.0 is RC"
echo "** If you want to install it you need to remove already installed package"
exit 1
fi
%clean
rm -rf $RPM_BUILD_ROOT