[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible archlinux: make sure to define DISTROID before using it

Mattia Rizzolo gitlab at salsa.debian.org
Thu Dec 13 14:27:00 GMT 2018


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


Commits:
a30c3c18 by Mattia Rizzolo at 2018-12-13T14:26:49Z
reproducible archlinux: make sure to define DISTROID before using it

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

- - - - -


1 changed file:

- bin/reproducible_archlinux_scheduler.sh


Changes:

=====================================
bin/reproducible_archlinux_scheduler.sh
=====================================
@@ -107,7 +107,6 @@ update_archlinux_repositories() {
 					# new package, add to db and schedule
 					echo $REPO/$pkgbase >> $NEW
 					echo "new package found: $repo/$pkgbase $version "
-					DISTROID=$(query_db "SELECT id FROM distributions WHERE name = 'archlinux'")
 					query_db "INSERT into sources (name, version, suite, architecture, distribution) VALUES ('$PKG', '$version', '$SUITE', '$ARCH', $DISTROID);"
 					PKG_ID=$(query_db "SELECT id FROM sources WHERE distribution=$DISTROID AND name='$PKG' AND suite='$SUITE' AND architecture='$ARCH';")
 					query_db "INSERT INTO schedule (package_id, date_scheduled) VALUES ('${PKG_ID}', '$DATE');"
@@ -269,6 +268,7 @@ update_archlinux_repositories() {
 trap cleanup_all INT TERM EXIT
 ARCH="x86_64"
 SESSION="archlinux-scheduler-$RANDOM"
+DISTROID=$(query_db "SELECT id FROM distributions WHERE name = 'archlinux'")
 update_archlinux_repositories
 trap - INT TERM EXIT
 



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/a30c3c18f9fc9e6adcbf53fdcf2dfed9a0452a96
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/20181213/9fb3ad60/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list