From 0e6f4628d8fff53505e4399e71da9f531a64fff7 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 20 Oct 2019 23:49:18 +0200 Subject: Don't try to add nil packages on refresh * lisp/emacs-lisp/package.el (package-read-archive-contents): Don't try to add nil entries. Warn instead. (Bug#28502) * test/lisp/emacs-lisp/package-tests.el (package-test-update-archives/ignore-nil-entry): New test. * test/lisp/emacs-lisp/package-resources/with-nil-entry/archive-contents: New file. --- .../emacs-lisp/package-resources/with-nil-entry/archive-contents | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/lisp/emacs-lisp/package-resources/with-nil-entry/archive-contents (limited to 'test/lisp/emacs-lisp/package-resources/with-nil-entry/archive-contents') diff --git a/test/lisp/emacs-lisp/package-resources/with-nil-entry/archive-contents b/test/lisp/emacs-lisp/package-resources/with-nil-entry/archive-contents new file mode 100644 index 00000000000..03e6aa7f7c6 --- /dev/null +++ b/test/lisp/emacs-lisp/package-resources/with-nil-entry/archive-contents @@ -0,0 +1,8 @@ +(1 + (foo . + [(1 0) + nil "foo package" single]) + nil + (bar . + [(1 0) + nil "bar package" single])) -- cgit v1.2.3