From 0c5997b91eb9d449a63baaa12938e15e02122296 Mon Sep 17 00:00:00 2001 From: rudson Date: Mon, 23 Apr 2007 17:42:57 +0000 Subject: createpkg-1.0.5.3: pronto para trabalhar na transição do nome da variável REPOS para MAKEPKG_REPOS, nos SlackBuilds 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@362 04377dda-e619-0410-9926-eae83683ac58 --- branches/0.6/src/createpkg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'branches/0.6/src/createpkg') 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 -- cgit v1.2.3