Skip to content

Commit

Permalink
snap: Remove QEMU before clone
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakob-Naucke committed Jul 15, 2021
1 parent 594ff3a commit 558f1be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snap/snapcraft.yaml
Expand Up @@ -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}
Expand Down

0 comments on commit 558f1be

Please sign in to comment.