From 0c5997b91eb9d449a63baaa12938e15e02122296 Mon Sep 17 00:00:00 2001 From: rudson Date: Mon, 23 Apr 2007 17:42:57 +0000 Subject: [PATCH] =?utf8?q?createpkg-1.0.5.3:=20pronto=20para=20trabalhar?= =?utf8?q?=20na=20transi=C3=A7=C3=A3o=20do=20nome=20da=20vari=C3=A1vel=20R?= =?utf8?q?EPOS=20para=20MAKEPKG=5FREPOS,=20nos=20SlackBuilds?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@362 04377dda-e619-0410-9926-eae83683ac58 --- branches/0.6/src/createpkg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/branches/0.6/src/createpkg b/branches/0.6/src/createpkg index 39063ca..a15e27c 100644 --- a/branches/0.6/src/createpkg +++ b/branches/0.6/src/createpkg @@ -31,7 +31,7 @@ # Createpkg functions #--------------------------------------------------- -CREATEPKG_VERSION="1.0.5.2" +CREATEPKG_VERSION="1.0.5.3" function error_codes { @@ -500,7 +500,11 @@ eecho $messag "$BASENAME: processing $SCRIPT_NAME" cd $SCRIPT_BASE # Execute SlackBuild script with variables protection -( REPOS=$MAKEPKG_REPOS INTERACT=no sh ./$SCRIPT_NAME ) +if grep '^REPOS=' $SCRIPT_NAME 2>&1 >/dev/null ; then + ( REPOS=$MAKEPKG_REPOS INTERACT=no sh ./$SCRIPT_NAME ) +else + ( INTERACT=no sh ./$SCRIPT_NAME ) +fi # Check if package was built handle_error $? $PACKAGE -- 2.39.5