unchecked.variables 426 B

1234567891011
  1. function last_changed() {
  2. psql -qAtc "SELECT MAX(last_changed) FROM suite WHERE archive_id=(SELECT id FROM archive WHERE name='$1')"
  3. }
  4. function last_changed_buildd() {
  5. psql -qAtc "SELECT MAX(last_changed) FROM suite WHERE archive_id = ANY(SELECT id FROM archive WHERE name='security' OR name='build-queues')"
  6. }
  7. declare -gr LAST_CHANGED=$(last_changed security)
  8. declare -gr LAST_CHANGED_BUILDD=$(last_changed_buildd)