mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-11 04:42:16 +00:00
snap: Remove QEMU before clone
If you snap in an environment where you previously snapped, `git clone`ing QEMU will fail. Remove the checkout directory. Fixes: #2249 Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
This commit is contained in:
parent
594ff3a5bd
commit
558f1be62d
@ -270,6 +270,7 @@ parts:
|
||||
|
||||
# download source
|
||||
qemu_dir=${SNAPCRAFT_STAGE}/qemu
|
||||
rm -rf "${qemu_dir}"
|
||||
git clone --branch ${branch} --single-branch ${url} "${qemu_dir}"
|
||||
cd ${qemu_dir}
|
||||
[ -z "${commit}" ] || git checkout ${commit}
|
||||
|
Loading…
Reference in New Issue
Block a user