]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
createpkg: mais algumas alerações
authorrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>
Sat, 6 Jan 2007 20:15:01 +0000 (20:15 +0000)
committerrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>
Sat, 6 Jan 2007 20:15:01 +0000 (20:15 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@85 04377dda-e619-0410-9926-eae83683ac58

src/createpkg

index 0db3f8cda40d87a288b1394737f6ac6541926414..2a94be23db33ba98662f8349f4f436213a81e85f 100644 (file)
@@ -165,7 +165,7 @@ function solve_dep {
     local INSTALLED=`eval "ls /var/log/packages/ | egrep '^$PACK-[^-]+-[^-]+-[^-]+$'"`
 
     # TODO: Make check version procedures
-    if [ -z $INSTALLED ]; then
+    if [ -z "$INSTALLED" ]; then
         if [ $? -ne 0 ]; then
             # Check package in SlackBuilds tree
             echo -e "$CL_MENSG $BASENAME: processing $PACKAGE dependency $PACK $CL_OFF"
@@ -182,11 +182,11 @@ function solve_dep {
                 ARCH=$DEFAULT_ARCH simplaret --install $PACK
                 EXIT_CODE="$?"
                 if [ "$EXIT_CODE" != "0" ]; then
-                    handle_error $SCRIPT_OR_PACKAGE_NOT_FOUND
+                    handle_error $SCRIPT_OR_PACKAGE_NOT_FOUND $PACK
                 fi
 
             elif [ "$EXIT_CODE" != "0" ]; then
-                handle_error $EXIT_CODE
+                handle_error $EXIT_CODE $PACK
             fi
 
         fi
@@ -206,14 +206,14 @@ function sync_repo {
     # Synchronize repository
     cd $SLACKBUILDS
     svn update || build_repo
-    simplaret --update
+    #simplaret --update
 
 }
 
 function find_slackbuild {
 
     # Find SlackBuild script in the repository
-    find $SLACKBUILDS -name $1.SlackBuild
+    find $SLACKBUILDS -iname $1.SlackBuild
 
 }