fwupd/contrib/ci/snapcraft-wrapper
Mario Limonciello 6121eb26df trivial: snap: pull from edge channel to build
Due to bug https://bugs.launchpad.net/snapcraft/+bug/1817300 snaps
using classic confinement began failing to build recently when
using docker.

This is also discussed in
https://forum.snapcraft.io/t/snap-build-started-failing-with-pip-not-working/10142/3

This commit can be reverted when snapcraft migrates to the stable
channel.

Fixes: #1041
2019-02-25 21:27:18 -06:00

13 lines
311 B
Bash
Executable File

#!/bin/sh
SNAP="/snap/snapcraft/current"
SNAP_NAME="$(awk '/^name:/{print $2}' $SNAP/meta/snap.yaml)"
SNAP_VERSION="$(awk '/^version:/{print $2}' $SNAP/meta/snap.yaml)"
SNAP_ARCH="amd64"
export SNAP
export SNAP_NAME
export SNAP_VERSION
export SNAP_ARCH
exec "$SNAP/usr/bin/python3" "$SNAP/bin/snapcraft" "$@"