[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: calculate the cloud-image meta pkg set based on the...

Holger Levsen (@holger) gitlab at salsa.debian.org
Mon Jun 12 17:43:17 BST 2023



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


Commits:
c897e2d6 by Holger Levsen at 2023-06-12T18:43:01+02:00
reproducible Debian: calculate the cloud-image meta pkg set based on the depends of pkg:debian-cloud-images-packages

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
=====================================
@@ -250,31 +250,8 @@ update_pkg_set_specific() {
 			;;
 		cloud-image)
 			# cloud images of the Debian GNU/Linux operating system designed for OpenStack.
-			# see https://cloud.debian.org/images/cloud/
-			if [ "$SUITE" = "buster" ] ; then
-				URL="https://cloud.debian.org/images/cloud/OpenStack/current-10/debian-10-openstack-amd64-packages.list"
-				echo "Downloading $URL now."
-				curl $URL | cut -d ' ' -f1 | cut -d ':' -f1 > $TMPFILE
-				if ! grep '404 Not Found' && ! grep 'DOCTYPE' $TMPFILE ; then
-					echo "parsing $TMPFILE now..."
-					packages_list_to_deb822
-					convert_from_deb822_into_source_packages_only
-				else
-					rm $TMPFILE
-					MESSAGE="Warning: could not update cloud-image package list, skipping pkg set..."
-					irc_message debian-reproducible-changes $MESSAGE
-				fi
-			else
-				if [ "$SUITE" = "bullseye" ] ; then
-					URL="https://cloud.debian.org/images/cloud/bullseye/daily/latest/debian-11-generic-amd64-daily.json"
-				elif [ "$SUITE" = "bookworm" ] ; then
-					URL="https://cloud.debian.org/images/cloud/bookworm/daily/latest/debian-12-generic-amd64-daily.json"
-				elif [ "$SUITE" = "trixie" ] || [ "$SUITE" = "unstable" ] ; then
-					URL="https://cloud.debian.org/images/cloud/trixie/daily/latest/debian-13-generic-amd64-daily.json"
-				else
-					echo "$SUITE not supported, erroring out."
-					exit 1
-				fi
+			if [ "$SUITE" = "bullseye" ] ; then
+				URL="https://cloud.debian.org/images/cloud/bullseye/daily/latest/debian-11-generic-amd64-daily.json"
 				echo "Downloading $URL now."
 				curl $URL | jq '.items[].data.packages[]?.name' 2>/dev/null | tr -d '"' |xargs echo  > $TMPFILE
 				MISSES=""
@@ -284,6 +261,11 @@ update_pkg_set_specific() {
 				done
 				echo "The following unknown packages have been ignored: $MISSES"
 				mv ${TMPFILE2} $TMPFILE
+			else
+				chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FPriority required --or -FPackage debian-cloud-images-packages \) > ${TMPFILE2}
+				get_installable_set
+			fi
+			if [ -f $TMPFILE ] ; then
 				convert_from_deb822_into_source_packages_only
 			fi
 			;;



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/c897e2d656e775264249c44f447f05e4b8a0e09a
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/20230612/eb02f70f/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list