all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: Artur Malabarba <bruce.connor.am@gmail.com>, 19864@debbugs.gnu.org
Subject: bug#19864: 25.0.50; package-initialize is no more starting
Date: Sat, 14 Feb 2015 08:21:56 +0100	[thread overview]
Message-ID: <87fva9ufe3.fsf@altern.org> (raw)
In-Reply-To: <87h9uphshx.fsf@gmail.com> (Thierry Volpiatto's message of "Sat,	14 Feb 2015 08:17:14 +0100")

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

Hi Thierry,

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

> Actually to start emacs-25 I have to advice `package-initialize' to set
> `package--initialized' before.

Yes, I reported this here:
http://article.gmane.org/gmane.emacs.diffs/129142

See the attached patch.

Can you double check it's correct for you?
CC'ing Artur as he may want to double check too.

Thanks,


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: package.el.patch --]
[-- Type: text/x-diff, Size: 696 bytes --]

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index d8b4595..22676ae 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1147,7 +1147,9 @@ If successful, set `package-archive-contents'."
     (package-read-archive-contents (car archive)))
   ;; Build compat table.
   (setq package--compatibility-table (make-hash-table :test 'eq))
-  (package--mapc #'package--add-to-compatibility-table))
+  ;; Pretend package is initialized when reading for the first time.
+  (let ((package--initialized t))
+    (package--mapc #'package--add-to-compatibility-table)))
 
 (defun package-read-archive-contents (archive)
   "Re-read archive contents for ARCHIVE.

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
 Bastien

  reply	other threads:[~2015-02-14  7:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-14  7:17 bug#19864: 25.0.50; package-initialize is no more starting Thierry Volpiatto
2015-02-14  7:21 ` Bastien [this message]
2015-02-14  7:37   ` Thierry Volpiatto
2015-02-14  8:12     ` Thierry Volpiatto
2015-02-15  9:48       ` Thierry Volpiatto
2015-02-15 14:45         ` Artur Malabarba
2015-02-16  7:04           ` Thierry Volpiatto
2015-02-16  8:20             ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fva9ufe3.fsf@altern.org \
    --to=bzg@altern.org \
    --cc=19864@debbugs.gnu.org \
    --cc=bruce.connor.am@gmail.com \
    --cc=thierry.volpiatto@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.