[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: create meta pkg sets: prevent jq from iterating over null

Holger Levsen (@holger) gitlab at salsa.debian.org
Wed Nov 30 22:23:46 GMT 2022



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


Commits:
a62656fa by Holger Levsen at 2022-11-30T23:23:37+01:00
reproducible Debian: create meta pkg sets: prevent jq from iterating over null

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

- - - - -


1 changed file:

- bin/reproducible_create_meta_pkg_sets.sh


Changes:

=====================================
bin/reproducible_create_meta_pkg_sets.sh
=====================================
@@ -277,7 +277,7 @@ update_pkg_set_specific() {
 					exit 1
 				fi
 				echo "Downloading $URL now."
-				curl $URL | jq '.items[].data.packages[].name' 2>/dev/null | tr -d '"' |xargs echo  > $TMPFILE
+				curl $URL | jq '.items[].data.packages[]?.name' 2>/dev/null | tr -d '"' |xargs echo  > $TMPFILE
 				MISSES=""
 				# convert binary packages into source packages
 				for i in $(cat $TMPFILE) ; do



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a62656fa23c321d661ed8a8a623de760c3e58f6f
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/20221130/dc27f922/attachment.htm>


More information about the Qa-jenkins-scm mailing list