[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] dsa-check-running-kernel: fix a new apparent breakage

Mattia Rizzolo gitlab at salsa.debian.org
Sun Dec 1 16:21:52 GMT 2019



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
490e125a by Mattia Rizzolo at 2019-12-01T16:20:00Z
dsa-check-running-kernel: fix a new apparent breakage

since a while we are seeing this with the backports kernel:
% dsa-check-running-kernel                                                                                                                  :(
dpkg: warning: version '1.linux-image-5.3.0-0.bpo.2-amd64(=5.3.9-2~bpo10+1)' has bad syntax: invalid character in version number
dpkg: warning: version '1.linux-image-5.3.0-0.bpo.2-amd64(=5.3.9-2~bpo10+1)' has bad syntax: invalid character in version number
WARNING: Kernel needs upgrade [linux-image-5.3.0-0.bpo.2-amd64(=5.3.9-2~bpo10+1) != linux-image-5.3.0-0.bpo.2-amd64]

likely due to the unversioned package now having versioned dependencies,
which is a new thing.

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

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


Changes:

=====================================
hosts/common/usr/local/bin/dsa-check-running-kernel
=====================================
@@ -94,7 +94,7 @@ get_avail() {
 
 	local imagename=0
 	# --no-all-versions show shows only the candidate
-	for vers in $(apt-cache --no-all-versions show ${prefix}-image-${metavers} | sed -n 's/^Depends: //p' | tr ',' '\n' | tr -d ' ' | grep ${prefix}-image | awk '{print $1}' | awk -F"|" '{print $1}' | sort -Vu); do
+	for vers in $(apt-cache --no-all-versions show ${prefix}-image-${metavers} | sed -n 's/^Depends: //p' | tr ',' '\n' | awk '{print $1}' | grep ${prefix}-image | awk -F"|" '{print $1}' | sort -Vu); do
 		if dpkg --compare-versions "1.$vers" gt "1.$imagename"; then
 			imagename=$vers
 		fi



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/490e125aa5ec8f1181c04739eb73b2455823fb35
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/20191201/82c6566e/attachment.html>


More information about the Qa-jenkins-scm mailing list