Commit c110f366 authored by Holger Levsen's avatar Holger Levsen

reproducible Archlinux scheduler: fix two typos

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent de512ba6
......@@ -330,11 +330,9 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian
*** we share /var/log/jenkins/reproducible-race-conditions.log with debian, is that ok? (else fix maintenance job and handle_race_condition())
*** make build respect pacman exit code, see FIXME in _html_.sh
** html
*** disable (and then drop) all current html creation
*** leave all files, delete them (much) later
*** leave all pkg.html files, delete them (much) later, then check all pkg.* files are gone
*** recreate them newly as index.html
**** create new job to recreate all pkg pages
**** call pkg html function after each build
*** create index pages
*** create new archlinux.html - keep the old one til this works
** create json
......
......@@ -110,13 +110,13 @@ update_archlinux_repositories() {
echo "$PKG is blacklisted, so not scheduling it."
else
PKG_ID=$(query_db "SELECT id FROM sources WHERE name='$PKG' AND suite='$SUITE' AND architecture='$ARCH';")
echo " SELECT FROM schedule WHERE package_id = '${PKG_ID}';"
SCHEDULED=$(query_db "SELECT FROM schedule WHERE package_id = '${PKG_ID}';")
echo " SELECT * FROM schedule WHERE package_id = '${PKG_ID}';"
SCHEDULED=$(query_db "SELECT * FROM schedule WHERE package_id = '${PKG_ID}';")
if [ -z "$SCHEDULED" ] ; then
echo " INSERT INTO schedule (package_id, date_scheduled) VALUES ('${PKG_ID}', '$DATE');"
query_db "INSERT INTO schedule (package_id, date_scheduled) VALUES ('${PKG_ID}', '$DATE');" ||true
else
" $PKG (package_id: ${PKG_ID}) already scheduled, not scheduling again."
echo " $PKG (package_id: ${PKG_ID}) already scheduled, not scheduling again."
fi
fi
elif [ "$VERCMP" = "-1" ] ; 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