Skip to content
Commits on Source (2)
......@@ -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
......
......@@ -69,17 +69,6 @@ update_archlinux_repositories() {
# from results
# from scheduled
# from sources
else
#
# temporary code to move archlinux results from fs to db
#
cd $BASE/archlinux/$REPO/$PKG
if [ -f pkg.build_duration ] && [ -f pkg.state ] && [ -f pkg.version ] ; then
SUITE="archlinux_$REPO"
rm pkg.build_duration pkg.state pkg.version
elif [ -f pkg.build_duration ] || [ -f pkg.state ] || [ -f pkg.version ] ; then
echo "$REPO/$PKG: one or more of pkg.build_duration, pkg.state and pkg.version does not exist, ignoring."
fi
fi
done
done
......@@ -121,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
......