From ee34be26ff77b3fecba3aff66b9ca7c483548cd7 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 15 Jun 2020 21:56:20 +0200 Subject: [PATCH] Fix parsing of https://kernel.ubuntu.com/~kernel-ppa/mainline/ --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a951de6..3daed0d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,9 @@ os: linux before_install: #Cron builds only build mainline kernel. Stable and LTS kernels usually not have breaking changes. - if [ "$TRAVIS_EVENT_TYPE" == "cron" ] && [ "$KVER_BUILD" != "$KERNEL_MAINLINE" ]; then exit 0; fi - - export KERNEL_URL_DETAILS=$(wget --quiet -O - ${KERNEL_URL}v${KVER_BUILD}/ | grep -A8 "Build for ${TRAVIS_CPU_ARCH}") + - export KERNEL_URL_DETAILS=$(wget --quiet -O - ${KERNEL_URL}v${KVER_BUILD}/ | grep -A8 "Build for ${TRAVIS_CPU_ARCH}\|Test ${TRAVIS_CPU_ARCH}") - export ALL_DEB=$(echo "$KERNEL_URL_DETAILS" | grep -m1 'all.deb' | cut -d '"' -f 2) - - export KVER=$(echo $ALL_DEB | cut -d '_' -f 1 | cut -c15-)-generic + - export KVER=$(echo $ALL_DEB | cut -d '_' -f 2 | rev | cut -c14- | rev)-generic - wget ${KERNEL_URL}v${KVER_BUILD}/$(echo "$KERNEL_URL_DETAILS" | grep -m1 "${TRAVIS_CPU_ARCH}.deb" | cut -d '"' -f 2) - wget ${KERNEL_URL}v${KVER_BUILD}/$ALL_DEB - sudo dpkg -i *.deb