daily.functions 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # -*- mode:sh -*-
  2. function fix_overrides() {
  3. rsync --delete -r --include=override\* --exclude=\* --password-file /srv/security-master.debian.org/s3kr1t/rsync-password -ql security-master@ftp-master::indices/ $overridedir
  4. cd $overridedir
  5. for file in override*.gz; do
  6. zcat -- "$file" > "${file%.gz}"
  7. done
  8. find . -maxdepth 1 -mindepth 1 -type l -delete
  9. for suite in oldstable stable-security testing-security; do
  10. override_suite=$(dak admin suite-config get-value "${suite}" codename)
  11. override_suite="${override_suite%-security}"
  12. for component in $components; do
  13. for override_type in $override_types; do
  14. case $override_type in
  15. deb) type="" ;;
  16. dsc) type=".src" ;;
  17. udeb) type=".debian-installer" ;;
  18. esac
  19. if [ "$override_type" = "udeb" ]; then
  20. if [ ! "$component" = "main" ]; then
  21. continue
  22. fi
  23. fi
  24. OFILE="override.$override_suite.$component$type.gz"
  25. if [ -r "$OFILE" ]; then
  26. zcat "$OFILE" | dak control-overrides -q -a -t $override_type -s $suite -c updates/$component
  27. fi
  28. done
  29. done
  30. done
  31. }