]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
bugfixes - ver CHANGELOG
authorrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>
Sun, 2 Dec 2007 01:10:57 +0000 (01:10 +0000)
committerrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>
Sun, 2 Dec 2007 01:10:57 +0000 (01:10 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@462 04377dda-e619-0410-9926-eae83683ac58

trunk/doc/CHANGELOG
trunk/lib/common.sh
trunk/mkbuild/model.mkbuild
trunk/src/createpkg
trunk/src/mkbuild

index 0b9565b8de1b3d4c4155f43ad36d5adcd67f6ce5..db3ba54d2306f47fa1e6853172f24e18bfb3a15f 100644 (file)
@@ -22,6 +22,13 @@ simplepkg changelog
     - ERROR_PAR_NUMBER - incorrect number of parameters
     - ERROR_COMMON_NOT_FOUND - file common.sh not found
 
+  - bugfixes:
+    - common.sh: added ;; in the end from line 787
+    - common.sh: change handle_error exit to "is_number $1 && exit $1 || exit 1"
+    - createpkg: protect parameters in solve_dep call with ""
+    - mkbuild: change "PACKGE NAME" parameter to "PKG NAME"
+    - model.mkbuild: change "PACKGE NAME" parameter to "PKG NAME"
+
 0.6pre1-10
 
   - simplepkg.conf:
index 3db98a87c64e8976a2729252262f509f9d00b0eb..5a2cb35c2fd88ca3abca7e7b1963b5553f4885ca 100644 (file)
@@ -784,7 +784,7 @@ function handle_error {
     $ERROR_PAR_NUMBER)
       eecho $error "$BASENAME: incorrect number of parameters" ;;
     $ERROR_COMMON_NOT_FOUND)
-      eecho $error "$BASENAME: file $COMMON_SH not found. Check your $BASENAME installation"
+      eecho $error "$BASENAME: file $COMMON_SH not found. Check your $BASENAME installation" ;;
 
     #
     # Createpkg errors
@@ -810,7 +810,7 @@ function handle_error {
       eecho $error "$BASENAME: unknown error or user interrupt" ;;
   esac
 
-  exit $1
+  is_number $1 && exit $1 || exit 1
 
 }
 
index edd33c65924e88989ab1d77d91cbe1aab4bc4b60..453a84f288f1c69be3a3f9b734a85155b7516fe1 100644 (file)
@@ -146,15 +146,15 @@ off: postinstall_script
 # Sections changes
 #------------------
 #>slackdesc
-[[PACKAGE NAME]]: [[PACKAGE NAME]] by Slack.Sarava
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
+[[PKG NAME]]: [[PKG NAME]] by Slack.Sarava
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
 #<slackdesc
index a08750e5dceedafc98bf96694ecdcdc6228cb47b..5b5cf21d293c871a582e9a23cb8b57fb7b8886e3 100644 (file)
@@ -351,7 +351,7 @@ if [ ! -z "$SLACK_REQUIRED" -a $NO_DEPS -ne $on ]; then
             PROGRAM="`echo $dep | awk '{ print $1 }'`"
             CONDITION="`echo $dep | awk '{ print $2 }' | tr [=\>\<] [egl]`"
             VERSION="`echo $dep | awk '{ print $3 }' | tr -dc '[:digit:]'`"
-            solve_dep $PROGRAM $CONDITION $VERSION
+            solve_dep "$PROGRAM" "$CONDITION" "$VERSION"
         fi
         true
     done )
index f9281a2b5a609174fefefd008e559a9ef4e2119b..45805f60f8d4766a376af0320608d7f73cc0a3c0 100755 (executable)
@@ -674,11 +674,11 @@ if [ ! -z "$MKBUILD_NAME" ]; then
       edit_file "YOUR SIGNATURE" "${AUTHOR_INITIALS}" ${MKBUILD_NAME}.mkbuild
     fi
     # Change Default SourceForge URL
-    [ -z "$URL" ] && URL="http://downloads.sourceforge.net/[[PACKAGE NAME]]/"
+    [ -z "$URL" ] && URL="http://downloads.sourceforge.net/[[PKG NAME]]/"
     edit_file "DEFAULT URL" "${URL}" ${MKBUILD_NAME}.mkbuild
     # Change Package Name
-    edit_file "PACKAGE NAME" "${MKBUILD_NAME}" ${MKBUILD_NAME}.mkbuild
-    edit_file "PACKAGE NAME" "${MKBUILD_NAME}" ${MKBUILD_NAME}.mkbuild
+    edit_file "PKG NAME" "${MKBUILD_NAME}" ${MKBUILD_NAME}.mkbuild
+    edit_file "PKG NAME" "${MKBUILD_NAME}" ${MKBUILD_NAME}.mkbuild
 
     # Print .mkbuild name
     echo "${MKBUILD_NAME}.mkbuild"