]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
mkbuild: fixing DIST download
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 27 Jan 2009 15:48:54 +0000 (15:48 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 27 Jan 2009 15:48:54 +0000 (15:48 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@780 04377dda-e619-0410-9926-eae83683ac58

trunk/src/mkbuild

index 45c99fed3bc56f61b50b655b1ce8a5345b64a2bf..03aa0801fb4af1ea700e2f189481d70589ea858d 100755 (executable)
@@ -1141,7 +1141,7 @@ function get_file {
         elif is_writable_folder $TMP; then
           file="$TMP/`basename $file_name`"
           if [ ! -e "$file" ]; then
-            wget "$URL" -O "$file"
+            wget "$url" -O "$file"
             if [ "$?" != "0" ]; then
               echo "Could not download $file"
               return 1
@@ -1150,7 +1150,7 @@ function get_file {
         elif ! is_the_same /tmp $TMP; then
           file="/tmp/`basename $file_name`"
           if [ ! -e "$file" ]; then
-            wget "$URL" -O "$file"
+            wget "$url" -O "$file"
             if [ "$?" != "0" ]; then
               echo "Could not download $file"
               return 1
@@ -1176,7 +1176,7 @@ function get_dist_file {
   # usage: get_dist_file <url> [file_name]
 
   DIST_SRC_LOCATION=""
-  get_file dist $URL
+  get_file dist $DIST_SRC_URL
   DIST_SRC_LOCATION="$DOWNLOADED_FILE_LOCATION"
 
 }
@@ -1349,9 +1349,12 @@ function get_mkbuild_values {
   [ -z $SOURCE_NAME ] && SOURCE_NAME=`eval "echo $CONST_STRING"`
   verbose "SOURCE_NAME=\"$SOURCE_NAME\""
 
-  # Eval source code name
+  # Eval source code name and URL
   DIST_SRC_NAME="`eval "echo $CONST_STRING"`" # we need this to strip some escape strings
   DIST_SRC_NAME="`eval "echo $DIST_SRC_NAME"`" # twice does the job
+  DIST_SRC_URL="`eval "echo $URL_BASE"`" # we need this to strip some escape strings
+  DIST_SRC_URL="`eval "echo $DIST_SRC_URL"`" # twice does the job
+  DIST_SRC_URL="$DIST_SRC_URL/$DIST_SRC_NAME"
 
   # Documentations list
   DEFAULT_DOCFILES="NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING LICENSE SIGNATURE readme.*"