mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-22 10:51:01 +00:00

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
13 lines
311 B
Bash
Executable File
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" "$@"
|