From 917fb2cd4b3b59846cb2bf1ac1a176e441a5dc5d Mon Sep 17 00:00:00 2001 From: rudson Date: Tue, 27 Feb 2007 21:44:35 +0000 Subject: createpkg 1.0.2: alterado a saĆ­da para o erro 'script not found' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@199 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/createpkg | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'trunk') 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`" -- cgit v1.2.3