aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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