0004-revoked-key 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #! /bin/bash
  2. #
  3. # © 2020 Ivo De Decker <ivodd@debian.org>
  4. # License: GPL-2+
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. set -e
  19. set -u
  20. . ${DAK_ROOT:?}/integration-tests/common
  21. . ${DAK_ROOT:?}/integration-tests/setup
  22. . ${DAK_ROOT:?}/integration-tests/dinstall
  23. setup_empty_archive
  24. setup_unstable
  25. # don't load the keys here, we do that below, after changing them
  26. (
  27. packages=$(fixture-package-dir)
  28. # copy the keyring, so that we can modify it
  29. cp -Ta ${packages:?}/gpg/ ${DAKBASE:?}/keyrings/
  30. export GNUPGHOME=${DAKBASE:?}/keyrings/
  31. # A Maintainer
  32. gpg --faked-system-time 20200303T200000 --quick-set-expire 993C2870F54D83789E55323C13D986C3912E851C 2020-04-04
  33. # snowman
  34. gpg --faked-system-time 20200303T200000 --quick-set-expire 589E8FA542378066E944B6222F7C63E8F3A2C549 2020-04-04
  35. # Développeur
  36. gpg --faked-system-time 20200303T200000 --quick-set-expire 22865D3DA7CF3DE67C1AF9A74014AB2D03010AA9 2020-04-04
  37. ln -sf ${DAKBASE:?}/keyrings/pubring.gpg ${DAKBASE:?}/keyrings/upload-keyring.gpg
  38. dak import-keyring -U "%s" ${DAKBASE}/keyrings/upload-keyring.gpg
  39. upload_changes ${packages:?}/package_0.1-1_amd64.changes
  40. upload_changes ${packages:?}/snowman_0.1-1_amd64.changes
  41. upload_changes ${packages:?}/grave_0.1-1_amd64.changes
  42. process_uploads
  43. # show the errors in the log
  44. # this will also show some unicode errors
  45. cat ${DAKBASE:?}/log/*
  46. )
  47. # check that none of the packages above were accepted
  48. check_all_suites end