aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/disk-image-builder
diff options
context:
space:
mode:
authorCarsten Koester <ckoester@cisco.com>2016-08-07 22:12:38 -0700
committerDave Wallace <dwallacelf@gmail.com>2016-08-09 21:25:50 +0000
commit3b9f0612fdd40b418265dc4c9688756d5088983c (patch)
tree51d28ee5a23765dadcce5302d6760f4896bf66b7 /resources/tools/disk-image-builder
parentf29d526d71919986f3ea7f7c6fc1dd9c4fb56c8e (diff)
Correct error in filename when fetching packages via launchpad API
Change-Id: I816ccf58bc52737893d21be3d8fb08a87c703198 Signed-off-by: Carsten Koester <ckoester@cisco.com>
Diffstat (limited to 'resources/tools/disk-image-builder')
-rwxr-xr-xresources/tools/disk-image-builder/ubuntu/build.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/tools/disk-image-builder/ubuntu/build.sh b/resources/tools/disk-image-builder/ubuntu/build.sh
index 33634adf02..2b953f1c3a 100755
--- a/resources/tools/disk-image-builder/ubuntu/build.sh
+++ b/resources/tools/disk-image-builder/ubuntu/build.sh
@@ -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