From b558a0234c49ed40c84c03a6c42ceafb6e9024f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toshio=20=E3=81=8F=E3=82=89=E3=81=A8=E3=81=BF?= Date: Tue, 17 Nov 2009 03:30:29 +0000 Subject: [PATCH] string comparison => number. --- python-setuptools.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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