Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
config/debian-security: consider `last_changed` of build queues as well
· c69c4254
Ansgar
authored
Jul 11, 2019
Otherwise newer packages in a build queue result in repeated notifications sent to w-b.
c69c4254
Merge branch 'master' into deploy
· c34be77a
Ansgar
authored
Jul 11, 2019
c34be77a
Show whitespace changes
Inline
Side-by-side
config/debian-security/unchecked.functions
View file @
c34be77a
...
...
@@ -4,7 +4,7 @@ function sync_accepted() {
}
function trigger_wb_security() {
${configdir}/cron.buildd "${LAST_CHANGED}"
${configdir}/cron.buildd "${LAST_CHANGED
_BUILDD
}"
}
function clean_suites() {
...
...
config/debian-security/unchecked.variables
View file @
c34be77a
...
...
@@ -2,4 +2,9 @@ function last_changed() {
psql -qAtc "SELECT MAX(last_changed) FROM suite WHERE archive_id=(SELECT id FROM archive WHERE name='$1')"
}
function last_changed_buildd() {
psql -qAtc "SELECT MAX(last_changed) FROM suite WHERE archive_id = ANY(SELECT id FROM archive WHERE name='security' OR name='build-queues')"
}
declare -gr LAST_CHANGED=$(last_changed security)
declare -gr LAST_CHANGED_BUILDD=$(last_changed_buildd)