Launchpad snap builds now have ubuntu-esm repositories
enabled. And now apt-get -y update started to produce error since the
GPG keys of the sources.list from the host, are not available in the
chroot. Fix this by copying the host trusted.gpg keyring into the
chroot.
Find the meta package in pocket using the abi as a key
If the version we are trying to build is the version in -updates but the
version is higher in -proposed we will install the wrong version and bail
out. Rather find the appropriate meta package version which will install
the kernel we are trying to package and install that explicitly by version.
Signed-off-by: Andy Whitcroft <email address hidden>
When a signed package needs to be re-uploaded keeping the same ABI
number, a '+signedN' suffix is added to its version number. This is
causing problems for the snap build which detects a mismatch with the
version requested by the snapcraft.yaml file. Fix it by considering
any '+*' suffix as valid suffix when performing the match with the
installed linux image package.
Acked-by: Andy Whitcroft <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Andy Whitcroft <email address hidden>