diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-07-26 19:12:32 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-07-26 19:12:32 +0000 |
commit | e92c045bb64f2329aaf49337e9f0fda84ac88557 (patch) | |
tree | 18acea5ce3262949ca34e91ddc230c9c185e8489 | |
parent | b28b0bd5f13135d64dca024f629100b3e30d47b2 (diff) | |
download | simplepkg-e92c045bb64f2329aaf49337e9f0fda84ac88557.tar.gz simplepkg-e92c045bb64f2329aaf49337e9f0fda84ac88557.tar.bz2 |
fixed REPOS/MAKEPKG_REPOS issue on createpkg
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@408 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-x | trunk/simplepkg.SlackBuild | 2 | ||||
-rw-r--r-- | trunk/src/createpkg | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/trunk/simplepkg.SlackBuild b/trunk/simplepkg.SlackBuild index 6f65869..815205d 100755 --- a/trunk/simplepkg.SlackBuild +++ b/trunk/simplepkg.SlackBuild @@ -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" diff --git a/trunk/src/createpkg b/trunk/src/createpkg index 069c771..80fff8f 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -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 |