unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eduardo Ochs <eduardoochs@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How do package.el handles "duplicate packages"?
Date: Fri, 25 Nov 2022 01:13:11 -0500	[thread overview]
Message-ID: <jwva64ftvn6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CADs++6iceDBc6AnGVQJ36tivM2nDG1AgxY9EtjhFM+qWui+TiA@mail.gmail.com> (Eduardo Ochs's message of "Fri, 25 Nov 2022 00:58:39 -0300")

> Note that the current docstring doesn't mention that one of the entries
> is for nongnu and the other one is for melpa:

That's because the contents depends on the archives you have activated
and which one of those archives offers the specific package.
It could also be the case that an archive offers several versions of the
same package (tho this case hasn't been tested, AFAIK).

> Next question: is there a way to determine which of the entries -
> nongnu or melpa - corresponds to a version that is more recent?

The official way is to compare the versions with `version<=`, but since
Melpa uses an incompatible versioning scheme, this will often not give
you the answer you're looking for when comparing Melpa and (Non)GNU ELPA
versions :-(

That's a longstanding problem with Melpa versions (which does not
affect Melpa-stable), but one that's not easy to fix without introducing
regressions for existing Melpa users :-(


        Stefan




      reply	other threads:[~2022-11-25  6:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-24 23:43 How do package.el handles "duplicate packages"? Eduardo Ochs
2022-11-25  3:04 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-25  3:58   ` Eduardo Ochs
2022-11-25  6:13     ` Stefan Monnier [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwva64ftvn6.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eduardoochs@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).