Correct error in filename when fetching packages via launchpad API 48/2248/2
authorCarsten Koester <ckoester@cisco.com>
Mon, 8 Aug 2016 05:12:38 +0000 (22:12 -0700)
committerDave Wallace <dwallacelf@gmail.com>
Tue, 9 Aug 2016 21:25:50 +0000 (21:25 +0000)
Change-Id: I816ccf58bc52737893d21be3d8fb08a87c703198
Signed-off-by: Carsten Koester <ckoester@cisco.com>
resources/tools/disk-image-builder/ubuntu/build.sh

index 33634ad..2b953f1 100755 (executable)
@@ -209,7 +209,8 @@ do
     then
       echo "WARNING: Unable to get package using previously recorded URL, may"
       echo "         be superseded. Trying launchpad instead."
-      wget -P ${APT_CACHE_DIR} -O ${APT_CACHE_DIR}/$name "${LAUNCHPAD_URL}${name}"
+      url_basename=$(basename $url | tr -d "'")
+      wget -P ${APT_CACHE_DIR} -O ${APT_CACHE_DIR}/$name "${LAUNCHPAD_URL}${url_basename}"
     fi
   fi
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.