X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59455c67d444c12f6d6a59e0c16528554c8b4c30..0613b80c171f77425226621886e9160f6767ad30:/wxPython/distrib/makerpm?ds=sidebyside

diff --git a/wxPython/distrib/makerpm b/wxPython/distrib/makerpm
index 667c79fc29..3bc3a4d755 100755
--- a/wxPython/distrib/makerpm
+++ b/wxPython/distrib/makerpm
@@ -49,7 +49,7 @@ function usage {
 #    echo "   smp            Add SMP=2 to the envivonment to speed wxGTK build"
 }
 
-if [ $# -lt 2 ]; then
+if [ $# -lt 1 ]; then
     usage
     exit 1
 fi
@@ -177,6 +177,8 @@ if [ -z "${skipcopy}" ]; then
     rm locale/*.mo
     cleanup ".#*"
     cleanup "*~"
+    cleanup "*.orig"
+    cleanup "*.rej"
     cleanup "*.pyc"
     cleanup core
     cleanup "core.[0-9]*"