unchecked.functions 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. function sync_accepted() {
  2. rsync --recursive --times --partial --remove-source-files \
  3. ${queuedir}/accepted/ rsync-to-ssh.upload.debian.org:/does/not/matter
  4. }
  5. function trigger_wb_security() {
  6. ${configdir}/cron.buildd "${LAST_CHANGED_BUILDD}"
  7. }
  8. function clean_suites() {
  9. # clean policy and build queues to remove files from rejected uploads
  10. dak clean-suites -a new,policy,build-queues
  11. }
  12. function export_policy() {
  13. local queue=$1
  14. cd ${queuedir}/${queue}
  15. rm -rf export.new
  16. mkdir export.new
  17. dak export -q ${queue} -d export.new --all
  18. rsync -a --delete export.new/. export/.
  19. rm -rf export.new
  20. }
  21. function process_policy_security() {
  22. local queue=$1
  23. local report=$queuedir/REPORT
  24. local timestamp=$(date "+%Y-%m-%d %H:%M")
  25. echo "$timestamp: processing ${queue}" >> ${report}
  26. dak process-policy ${queue} | tee -a ${report} | mail -a "X-Debian: DAK" -e -s "Automatically accepted from ${queue}" -a "From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>" team@security.debian.org
  27. }
  28. function do_dinstall() {
  29. new_last_changed=$(last_changed security)
  30. if [[ ${LAST_CHANGED} != ${new_last_changed} ]]; then
  31. # We had something approved from a policy queue, push out new archive
  32. includetasks unchecked-dinstall
  33. fi
  34. }