Remove old rpm packages before building the new one.

This commit is contained in:
Pavel Roskin 2002-09-22 01:37:20 +00:00
parent aee2962a24
commit a250483e11
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ if test -z "$MCVERSION" || test ! -f "$MCTARBALL"; then
exit 1
fi
rm -f /usr/src/redhat/RPMS/i386/mc-*.i386.rpm
rpm -tb "$MCTARBALL"
MC_RPM=`echo /usr/src/redhat/RPMS/i386/mc-*.i386.rpm`
if test ! -f $MC_RPM; then