From c2ccfa650464f02ace375b3b688a72e112afe859 Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Thu, 6 Feb 2014 14:09:32 +0000 Subject: [PATCH] Make the MIRROR_TARGET directory if it didn't exist Just adding an element shouldn't make a disk image build crash, even if we're not using the element for its intended purpose. Change-Id: I2ec91ce4975b3b0deee7c85bb223f854c694553f --- elements/pypi/extra-data.d/00-mount-pypi-mirror | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/pypi/extra-data.d/00-mount-pypi-mirror b/elements/pypi/extra-data.d/00-mount-pypi-mirror index c5c52235..8aa01611 100755 --- a/elements/pypi/extra-data.d/00-mount-pypi-mirror +++ b/elements/pypi/extra-data.d/00-mount-pypi-mirror @@ -5,5 +5,5 @@ set -eu MIRROR_SOURCE=~/.cache/image-create/pypi/mirror/ MIRROR_TARGET=$TMP_MOUNT_PATH/tmp/pypi -sudo mkdir -p $MIRROR_TARGET +sudo mkdir -p $MIRROR_SOURCE $MIRROR_TARGET sudo mount --bind $MIRROR_SOURCE $TMP_MOUNT_PATH/tmp/pypi