Commit 24be2ec5 authored by Holger Levsen's avatar Holger Levsen

reproducible Archlinux scheduler: fixup

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 7c77b0d3
......@@ -334,6 +334,8 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian
** extend scheduler.sh:
*** stop checking making 8000 queries instead of 1...
*** actually schedule old packages once queue is empty (except blacklisted packages)
**** at first reschedule packages which never have been build (according to the db)
**** once there are no more left, reschedule based on last build_date
*** also delete unknown packages from db: sources and schedule, later results as well
*** check/make sure that packages which are newer in trunk than repo are only scheduled once
** make build.sh read & write db
......
......@@ -85,8 +85,8 @@ update_archlinux_repositories() {
if [ -z "$VERSION" ] ; then
# new package, add to db and schedule
echo "new package found: $repo/$pkgbase $version "
echo " INSERT into sources (name, version, suite, architecture) VALUES ('$PKG', '$VERSION', '$SUITE', '$ARCH');"
query_db "INSERT into sources (name, version, suite, architecture) VALUES ('$PKG', '$VERSION', '$SUITE', '$ARCH');"
echo " INSERT into sources (name, version, suite, architecture) VALUES ('$PKG', '$version', '$SUITE', '$ARCH');"
query_db "INSERT into sources (name, version, suite, architecture) VALUES ('$PKG', '$version', '$SUITE', '$ARCH');"
PKGID=$(query_db "SELECT id FROM sources WHERE name='$PKG' AND suite='$SUITE' AND architecture='$ARCH';")
query_db "INSERT INTO schedule (package_id, date_scheduled) VALUES ('$PKGID', '$DATE');"
elif [ "$VERSION" != "$version" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment