Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.devel > #109515

Re: apt-listchanges: appropriate heuristic for ignoring sub-packages with symlinked /usr/share/doc directories

From Jonathan Kamens <jik@kamens.us>
Newsgroups linux.debian.devel
Subject Re: apt-listchanges: appropriate heuristic for ignoring sub-packages with symlinked /usr/share/doc directories
Date 2023-10-10 15:10 +0200
Message-ID <HnkEO-eSoh-13@gated-at.bofh.it> (permalink)
References <Hn5Z8-eIYQ-3@gated-at.bofh.it> <Hneg1-eO2A-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 10/10/23 02:18, Simon Richter wrote:
> On 10/10/23 06:24, Jonathan Kamens wrote:
>
>>   * binary package name different from source name
>>   * deb contains no changelog or NEWS files in /usr/share/doc
>>   * creates a symlink in /usr/share/doc with the binary package name as
>>     its name, pointing at another directory in /usr/share/doc
>
> I'd go an easier way: if the changelog is a symlink, its target is the 
> changelog to use, so the same changelog (with the same file name) will 
> be used by multiple packages, and all that's left is to deduplicate 
> this list.

The new version of apt-listchanges already deduplicates. The main point 
of the logic revamp I did was to add such deduplication instead of 
relying on version numbers to determine what to show the user.

Having said that, it doesn't make sense to do what you're proposing. If 
a package doesn't have any changelog files in it, but rather just a 
symlink to another package's changelog files, then those changelog files 
will have already been parsed by apt-listchanges and displayed to the 
user when the package that owns them was installed. As far as I can see 
the only thing that would be accomplished by doing what you suggest 
would be to make apt-listchanges slower, since it would have to locate 
and reparse all those changelog files, only to discover that their 
contents have already been displayed to the user.

   jik


Back to linux.debian.devel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

apt-listchanges: appropriate heuristic for ignoring sub-packages with  symlinked /usr/share/doc directories Jonathan Kamens <jik@kamens.us> - 2023-10-09 23:30 +0200
  Re: apt-listchanges: appropriate heuristic for ignoring sub-packages  with symlinked /usr/share/doc directories Simon Richter <sjr@debian.org> - 2023-10-10 08:20 +0200
    Re: apt-listchanges: appropriate heuristic for ignoring sub-packages  with symlinked /usr/share/doc directories Jonathan Kamens <jik@kamens.us> - 2023-10-10 15:10 +0200

csiph-web