aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>2007-04-23 17:42:57 +0000
committerrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>2007-04-23 17:42:57 +0000
commit0c5997b91eb9d449a63baaa12938e15e02122296 (patch)
tree8cd56b012c049f35d770198307d782ef8dedc98f
parent45d49a8ba1fcf6ecafdf167b52a67d32ff183e36 (diff)
downloadsimplepkg-0c5997b91eb9d449a63baaa12938e15e02122296.tar.gz
simplepkg-0c5997b91eb9d449a63baaa12938e15e02122296.tar.bz2
createpkg-1.0.5.3: pronto para trabalhar na transição do nome da variável REPOS para MAKEPKG_REPOS, nos SlackBuilds
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@362 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r--branches/0.6/src/createpkg8
1 files 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