]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fixed REPOS/MAKEPKG_REPOS issue on createpkg
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 26 Jul 2007 19:12:32 +0000 (19:12 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 26 Jul 2007 19:12:32 +0000 (19:12 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@408 04377dda-e619-0410-9926-eae83683ac58

trunk/simplepkg.SlackBuild
trunk/src/createpkg

index 6f6586921ce50eea804260fda49b821e25263434..815205dd6dd65bb62fd2c3f8732564ea1ddbe025 100755 (executable)
@@ -6,7 +6,7 @@
 PACKAGE="simplepkg"
 PACK_DIR="package-$PACKAGE"
 BUILD=${BUILD:=1rha}
-VERSION="0.6pre1"
+VERSION="0.6pre2"
 ARCH="noarch"
 LIBEXEC="/usr/libexec/$PACKAGE"
 BINDIR="/usr/bin"
index 069c771197642e73faf089d0ab1276afe1e9f2e7..80fff8f5b5544940bc281a9b8d8969e510669d91 100644 (file)
@@ -145,7 +145,11 @@ function check_config {
 
     # check the configuration
     TMP=${TMP:=/tmp};
-    REPOS=${REPOS:=$MAKEPKG_REPOS};
+    if [ ! -z "$REPOS" ]; then
+      MAKEPKG_REPOS="$REPOS"
+    else
+      REPOS=$MAKEPKG_REPOS
+    fi
     # Create $TMP and $REPOS if need
     [ ! -e $TMP ] && mkdir -p $TMP
     [ ! -e $REPOS ] && mkdir -p $REPOS