aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/createpkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/createpkg b/src/createpkg
index 42125c9..5ab979f 100644
--- a/src/createpkg
+++ b/src/createpkg
@@ -163,10 +163,11 @@ function solve_dep {
# Check package in local system
INSTALLED=`eval "ls /var/log/packages/ | egrep '^$PACK-[^-]+-[^-]+-[^-]+$'"`
+ CHECK=$?
# TODO: Make check version procedures
if [ -z "$INSTALLED" ]; then
- if [ $? -ne 0 ]; then
+ if [ $CHECK -ne 0 ]; then
# Check package in SlackBuilds tree
echo -e "$CL_MENSG $BASENAME: processing $PACKAGE dependency $PACK $CL_OFF"
SYNC=no CREATEPKG_CHILD=$CREATEPKG_CHILD createpkg --install $PACK