Specify the version of a stage-package to use

hi all, just to be a bit more specific on the reason for this - we have two snaps that are both using nmcli to manage / monitor different network interfaces.

We also have two different target platforms, one x86 (Dell Edge Gateway 3002) and ARM (RasbPi 3 for dev).

The AppArmor error below is being thrown, which based on the thread here seems to be caused be a nmcli version mismatch.

This checks out, because running nmcli -v from within the snap shows version 1.2.6, whereas using network-manager directly on the CLI on the Dell Edge Gateway shows version 1.2.2 and on the RasbPi 3 shows version 1.20.4

Both snaps have the ‘base’ set to ‘core’.

If the version mismatch is in fact the issue, I guess we could build different versions of the snap for each platform with different versions of nmcli included, but this is obviously so we’re wondering if there’s a better way to tackle this.

nmcli-CRITICAL **: Error: Could not create NMClient object: An AppArmor policy prevents this sender from sending this message to this recipient; type=“method_call”, sender=":1.37" (uid=0 pid=15775 comm=“nmcli dev “) interface=“org.freedesktop.DBus.Properties” member=“GetAll” error name=”(unset)” requested_reply=“0” destination=":1.12" (uid=0 pid=2347 comm="/snap/network-manager/379/usr/sbin/NetworkManager ")