unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Removing packages from archive-contents if removed from elpa-packages
Date: Mon, 31 Oct 2022 14:25:39 +0000	[thread overview]
Message-ID: <87wn8ggjdo.fsf@posteo.net> (raw)
In-Reply-To: <jwvtu3k19yk.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 31 Oct 2022 08:11:59 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Philip Kaludercic [2022-10-31 09:40:36] wrote:
>> there is at least one broken package on NonGNU ELPA
>> (color-theme-tangotango) that was added, then removed as dependencies
>> were missing, but it remained in the archive because it was added to the
>> archive-contents file.  The following patch would make sure that any
>> package not listed in elpa-packages is also remove from
>> archive-contents:
>
> Thanks, but I don't think `elpaa--update-archive-contents` is the right
> place for that.  This can be called N times for a given invocation of
> `elpaa-batch-make-all-packages`.
> Why not call a dedicated function from `elpaa-batch-make-all-packages`
> (i.e. alongside the call to `elpaa--publish-package-specs`)?

That can be done.

>> It might be a good idea to cache the interpretation of elpa-packages, so
>> I would also suggest the following:
>
> Not sure it's worth the trouble: the way the code is written, it should
> be called only once per Emacs session in the majority of cases, no?

Right, ideally somewhen around the beginning.

>> 1. This does not remove any tarballs.  It wouldn't be hard to do, but I
>>    am not sure if there would be any unintended side effects of doing
>>    so -- at least immediately.
>
> I think we should keep the old HTML page and tarballs.

I agree.

>> 2. There are functioning packages on NonGNU ELPA like haskell-mode that
>>    were also added to elpa-packages then removed, and still linger in
>>    the archive without being updated.  This would get rid of those too,
>>    which might not be a good idea.
>
> Indeed, `haskell-mode` should be re-added to `elpa-packages`
> because IIRC it's still actively depended-upon (by GNU ELPA's `hcel`).

The issue here is that upstream isn't responsive and has asked for
haskell-mode to not be added until further notice :/



  reply	other threads:[~2022-10-31 14:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-31  9:40 Removing packages from archive-contents if removed from elpa-packages Philip Kaludercic
2022-10-31 12:11 ` Stefan Monnier
2022-10-31 14:25   ` Philip Kaludercic [this message]
2022-10-31 14:47     ` Stefan Kangas
2022-10-31 15:10       ` Philip Kaludercic
2022-10-31 16:06     ` Philip Kaludercic
2022-10-31 17:53       ` Stefan Monnier
2022-11-01 10:42         ` Philip Kaludercic
2022-11-02  2:02           ` Stefan Monnier
2022-11-02  6:59             ` Philip Kaludercic

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=87wn8ggjdo.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

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).