Bug#919700: "apt-file list" prints files for wrong package

2019-01-18 Thread Niels Thykier
Control: block -1 by 703605

Jakub Wilk:
> Package: apt-file
> Version: 3.2.1
> 
> I ran into this odd corner case:
> 
>   $ apt-file list arc
>   arc: /usr/bin/arc
>   arc: /usr/bin/marc
>   arc: /usr/share/doc/arc/Arc521.doc.gz
>   arc: /usr/share/doc/arc/Arcinfo.gz
>   arc: /usr/share/doc/arc/Readme.gz
>   arc: /usr/share/doc/arc/changelog.Debian.gz
>   arc: /usr/share/doc/arc/changelog.gz
>   arc: /usr/share/doc/arc/copyright
>   arc: /usr/share/man/man1/arc.1.gz
>   arc: /usr/share/man/man1/marc.1.gz
>   arcanist: /usr/bin/arc
>   arcanist: /usr/share/man/man1/arc.1.gz
> 
> I guess apt-file got confused because "arc" is a substring of "arcanist"
> and they both ship the same files (bug #919697).
> 
> [...]
> 

Hi,

Thanks for the report.

I suspect it is the same (underlying) issue as #703605 (with the divert
case being a "more" legitimate clash).  I am keeping the bugs separate
for now but I suspect they will end up being solved at the same time.

Thanks,
~Niels



Bug#919700: "apt-file list" prints files for wrong package

2019-01-18 Thread Jakub Wilk

Package: apt-file
Version: 3.2.1

I ran into this odd corner case:

  $ apt-file list arc
  arc: /usr/bin/arc
  arc: /usr/bin/marc
  arc: /usr/share/doc/arc/Arc521.doc.gz
  arc: /usr/share/doc/arc/Arcinfo.gz
  arc: /usr/share/doc/arc/Readme.gz
  arc: /usr/share/doc/arc/changelog.Debian.gz
  arc: /usr/share/doc/arc/changelog.gz
  arc: /usr/share/doc/arc/copyright
  arc: /usr/share/man/man1/arc.1.gz
  arc: /usr/share/man/man1/marc.1.gz
  arcanist: /usr/bin/arc
  arcanist: /usr/share/man/man1/arc.1.gz

I guess apt-file got confused because "arc" is a substring of "arcanist" 
and they both ship the same files (bug #919697).


-- System Information:
Architecture: i386

Versions of packages apt-file depends on:
ii  perl 5.28.1-3
ii  apt  1.8.0~alpha3
ii  libapt-pkg-perl  0.1.34+b1
ii  liblist-moreutils-perl   0.416-1+b4
ii  libregexp-assemble-perl  0.36-1

--
Jakub Wilk