diff options
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/src/createpkg | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg index 45c2d6c..756b472 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -31,7 +31,7 @@ # Createpkg functions #--------------------------------------------------- -CREATEPKG_VERSION="1.0.2" +CREATEPKG_VERSION="1.0.3" function error_codes { @@ -405,6 +405,11 @@ esac # Get SlackBuild script BUILD_SCRIPT="`find_slackbuild $PACKAGE`" +# Check SlackBuild script found +if [ -z "$BUILD_SCRIPT" ]; then + handle_error 5 $PACKAGE +fi + # Select one SlackBuild if [ "`echo $BUILD_SCRIPT | wc -w`" -gt 1 ]; then AUX="$PS3" @@ -425,9 +430,6 @@ else PACKAGE=`basename $BUILD_SCRIPT .SlackBuild` fi -# Check SlackBuild script found -[ -z "$BUILD_SCRIPT" ] && handle_error 5 $PACKAGE - # Get dirname and script name from slackbuild SCRIPT_BASE="`dirname $BUILD_SCRIPT`" SCRIPT_NAME="`basename $BUILD_SCRIPT`" |