Merge from origin/emacs-25

6de0715 Properly reject malformed or empty package sigs
edae7d9 Remove buggy non-native image scrolling
This commit is contained in:
Paul Eggert 2016-05-13 18:26:15 -07:00
commit c8109d9c40
2 changed files with 10 additions and 35 deletions

View file

@ -1218,7 +1218,7 @@ errors."
(unless (and (eq package-check-signature 'allow-unsigned)
(eq (epg-signature-status sig) 'no-pubkey))
(setq had-fatal-error t))))
(when (and (null good-signatures) had-fatal-error)
(when (or (null good-signatures) had-fatal-error)
(package--display-verify-error context sig-file)
(signal 'bad-signature (list sig-file)))
good-signatures)))