aboutsummaryrefslogtreecommitdiff
path: root/src/createpkg
diff options
context:
space:
mode:
Diffstat (limited to 'src/createpkg')
-rw-r--r--src/createpkg10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/createpkg b/src/createpkg
index 0db3f8c..2a94be2 100644
--- a/src/createpkg
+++ b/src/createpkg
@@ -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
}