apt.postinst 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #! /bin/sh
  2. set -e
  3. # summary of how this script can be called:
  4. # * <postinst> `configure' <most-recently-configured-version>
  5. # * <old-postinst> `abort-upgrade' <new version>
  6. # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  7. # <new-version>
  8. # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  9. # <failed-install-package> <version> `removing'
  10. # <conflicting-package> <version>
  11. # for details, see http://www.debian.org/doc/debian-policy/ or
  12. # the debian-policy package
  13. case "$1" in
  14. configure)
  15. SECRING='/etc/apt/secring.gpg'
  16. # test if secring is an empty normal file
  17. if test -f $SECRING -a ! -s $SECRING; then
  18. rm -f $SECRING
  19. fi
  20. apt-key update
  21. ;;
  22. abort-upgrade|abort-remove|abort-deconfigure)
  23. ;;
  24. *)
  25. echo "postinst called with unknown argument \`$1'" >&2
  26. exit 1
  27. ;;
  28. esac
  29. # dh_installdeb will replace this with shell code automatically
  30. # generated by other debhelper scripts.
  31. #DEBHELPER#
  32. exit 0