diff options
author | rudson <rudson@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-27 21:44:35 +0000 |
---|---|---|
committer | rudson <rudson@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-27 21:44:35 +0000 |
commit | 917fb2cd4b3b59846cb2bf1ac1a176e441a5dc5d (patch) | |
tree | 41fc5b78eea9b69d393edcdf0e050a2f52b46251 /trunk | |
parent | b627cd07b133b2b7b61a6865e0d905315a42bd4a (diff) | |
download | simplepkg-917fb2cd4b3b59846cb2bf1ac1a176e441a5dc5d.tar.gz simplepkg-917fb2cd4b3b59846cb2bf1ac1a176e441a5dc5d.tar.bz2 |
createpkg 1.0.2: alterado a saída para o erro 'script not found'
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@199 04377dda-e619-0410-9926-eae83683ac58
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`" |