~ubuntu-kernel/ubuntu/+source/linux-snap/+git/xenial:master-test

Last commit made on 2018-11-13
Get this branch:
git clone -b master-test https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-snap/+git/xenial
Members of Ubuntu Kernel Repositories can upload to this branch. Log in for directions.

Branch merges

Branch information

Recent commits

5e6e452... by Paolo Pisati

bump ppa priority 2

Signed-off-by: Paolo Pisati <email address hidden>

daf60a6... by Paolo Pisati

bump ppa priority

Signed-off-by: Paolo Pisati <email address hidden>

1d7f61f... by Paolo Pisati

deb to snap: do that inside the chroot

Signed-off-by: Paolo Pisati <email address hidden>

b2a618f... by Paolo Pisati

deb to snap: apt-cache policy linux-image-raspi2

Signed-off-by: Paolo Pisati <email address hidden>

cc12cc6... by Paolo Pisati

after installing the PPA, do an apt-get update

Signed-off-by: Paolo Pisati <email address hidden>

8333d81... by Paolo Pisati

dont cut the corner when installing sw

Signed-off-by: Paolo Pisati <email address hidden>

e58b598... by Paolo Pisati

fix syntax

Signed-off-by: Paolo Pisati <email address hidden>

2617e8e... by Paolo Pisati

deb to snap: add ppa support

Signed-off-by: Paolo Pisati <email address hidden>

805d5ad... by Paolo Pisati

deb to snap: add i2c-bcm2709 to initrd's kmods

Signed-off-by: Paolo Pisati <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Acked-by: Colin Ian King <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

2695532... by Kleber Sacilotto de Souza

deb to snap: improve check for version mismatch

Currently the kernel snap build succeeds if the kernel version requested
on the snapcraft.yaml file doesn't have the same ABI version as the
latest kernel on the repository. The script blows at the following
point, but the build continues with the wrong package version.

set -e; \
echo ; \
KIMGVER="$(dpkg --root=chroot -l | awk '// {print $3}')"; \
echo $KIMGVER; \
[ ! $KIMGVER ] && echo "Unable to extract KIMGVER, exit" && exit 1; \
if [ $KIMGVER != 4.4.0-129.155 ]; then \
  echo "Version mismatch:\nInstalled: $KIMGVER Requested: 4.4.0-129.155"; \
  exit 1; \
fi; \
}

/bin/sh: 6: [: (Status,Err:: unexpected operator
/bin/sh: 7: [: (Status,Err:: unexpected operator

That's caused by the fact that we install the kernel package using the
meta package name provided, which always pulls the latest version from
the repo, and we use the ABI number provided to query the binary package
name installed, which will return an empty string if the ABI doesn't
match. The check works if only the build number is different though.

Fix it by checking the contents of the KIMGDEB variable before using it
to check if the whole package version matches.

Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
Acked-by: Paolo Pisati <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>