From 46410c89229ba465a86b51fb57b2a0986f2f1732 Mon Sep 17 00:00:00 2001 From: rudson Date: Wed, 17 Jan 2007 20:52:58 +0000 Subject: createpkg: correção do local INSTALLED... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@107 04377dda-e619-0410-9926-eae83683ac58 --- src/createpkg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3