GNU bug report logs - #16762
Installed packages are not considered part of the archive contents

Previous Next

Package: emacs;

Reported by: Johan Andersson <johan.rejeep <at> gmail.com>

Date: Sat, 15 Feb 2014 16:07:02 UTC

Severity: normal

Fixed in version 24.4

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 16762 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Johan Andersson <johan.rejeep <at> gmail.com>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 16762 <at> debbugs.gnu.org
Subject: Re: bug#16762: Installed packages are not considered part of the
 archive contents
Date: Fri, 21 Mar 2014 08:47:25 +0200
Johan Andersson <johan.rejeep <at> gmail.com> writes:

> In snapshot, if a package is installed with the most recent version, it is
> not added to the variable package-archive-contents. I don't know the reason
> for this, but I don't think it makes sense. Even if the package is
> installed, it is still part of the package archives in my opinion.

This was changed in revision 113000, not exactly sure why.

Stefan, could you explain that part of the change?

Seems like it could've fixed installed packages wrongly showing up in
the `list-packages' list, but I don't remember having that problem. Was
it made to improve the behavior of `package-install'?

> You have to realize that other packages (such as https://github.com/cask/epl)
> depend on the internals of package.el because it does not have an API (for
> some reason). Considering Epl is a dependency to Cask and a lot of people
> are using Cask, this change will affect many users.

If you're building a house on shaky foundation, and don't work on the
foundation, having to fix the house from time to time seems to be in the
job description.

(Unlike many other packages, there are no developer(s) specifically
maintaining package.el, looking after its API, etc).

> With this change, how can I know if a package is available, no matter if
> it's installed or not?

Look in both `package-archive-contents' and `package-alist', probably.

Although that depends on your definition of "available".




This bug report was last modified 11 years and 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.