[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: fixup dsa-check-running-kernel to deal with the ubuntu LTS changes…

Holger Levsen gitlab at salsa.debian.org
Sun Jan 20 12:01:20 GMT 2019


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
eb9c7401 by Holger Levsen at 2019-01-20T12:01:05Z
reproducible Debian: fixup dsa-check-running-kernel to deal with the ubuntu LTS changes…

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- hosts/common/usr/local/bin/dsa-check-running-kernel


Changes:

=====================================
hosts/common/usr/local/bin/dsa-check-running-kernel
=====================================
@@ -202,6 +202,12 @@ for on_disk in \
 			fi
 			[ -z "$on_disk_version" ] || break
 			on_disk_version="`cat "$on_disk" | $STRINGS | grep 'Linux version' | head -n1`"
+			if [ -x /usr/bin/lsb_release ] ; then
+				vendor=$(lsb_release -i -s)
+				if [ -n "$vendor" ] && [ "xDebian" != "x$vendor" ] ; then
+					on_disk_version=$( echo $on_disk_version|sed -e "s/ ($vendor [[:alnum:]\.-]\+ [[:alnum:]\.]\+)//")
+				fi
+			fi
 			[ -z "$on_disk_version" ] || break
 
 			echo "UNKNOWN: Failed to get a version string from image $on_disk"



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/eb9c740124ef2adcb35eb3c46e78c352ef7bbf60

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/eb9c740124ef2adcb35eb3c46e78c352ef7bbf60
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20190120/45077038/attachment.html>


More information about the Qa-jenkins-scm mailing list