Commit ca89fba0 authored by Holger Levsen's avatar Holger Levsen

reproducible Arch Linux: also include 3h mini-stat in irc message

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 4f7f5029
......@@ -257,6 +257,16 @@ update_archlinux_repositories() {
msg_depwait404=""
fi
MESSAGE="${message}${msg_old}${msg_depwait404}, for $total scheduled out of $TOTAL."
# the next 3 lines could maybe do some refactoring. but then, all of this should be rewritten in python using templates...
DISTROID=$(query_db "SELECT id FROM distributions WHERE name='archlinux'")
MAXDATE="$(date -u +'%Y-%m-%d %H:%M' -d '3 hours ago')"
RECENT=$(query_db "SELECT count(s.name) FROM sources AS s
JOIN results AS r
ON s.id=r.package_id
WHERE s.distribution=$DISTROID
AND s.architecture='x86_64'
AND r.build_date > '$MAXDATE'")
MESSAGE="$MESSAGE ($RECENT builds in the last 3h)"
echo -n "$(date -u ) - "
irc_message archlinux-reproducible "$MESSAGE"
else
......
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