From b558a0234c49ed40c84c03a6c42ceafb6e9024f1 Mon Sep 17 00:00:00 2001 From: Toshio くらとみ Date: Nov 17 2009 03:30:29 +0000 Subject: string comparison => number. --- diff --git a/python-setuptools.spec b/python-setuptools.spec index 7363d33..f374a6c 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -59,7 +59,7 @@ find $RPM_BUILD_ROOT%{python_sitelib} -name '*.exe' | xargs rm -f chmod +x $RPM_BUILD_ROOT%{python_sitelib}/setuptools/command/easy_install.py %pre -if [ $1 -gt 0 ] ; then +if [ $1 == 2 ] ; then OLDDIR="%{python_sitelib}/setuptools-0.6c9-py2.6.egg-info" if [ -d $OLDDIR ] ; then rm -rf $OLDDIR