Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-21 Thread Christoph Martin
Thanks for the patch. I'll have a try. Am 11.07.23 um 12:15 schrieb Vincent Lefevre: I note that there is a version comparison in sub parse_file: if (!defined $packages->{$package->{$PACKAGE}} or !defined

Processed: Re: Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-11 Thread Debian Bug Tracking System
Processing control commands: > retitle -1 apt-show-versions may show incorrect package version for > "Architecture: all" when a foreign arch is enabled Bug #858337 [apt-show-versions] apt-show-versions gives unreliable information Changed Bug title to 'apt-show-versions may show incorrect

Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-11 Thread Vincent Lefevre
Control: retitle -1 apt-show-versions may show incorrect package version for "Architecture: all" when a foreign arch is enabled More precise bug title. The "*manually* upgradeable from" message is just a consequence. -- Vincent Lefèvre - Web: 100% accessible

Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-11 Thread Vincent Lefevre
Control: tags -1 patch On 2023-07-11 11:45:25 +0200, Vincent Lefevre wrote: > IMHO, for architecture "all", either only the Packages file that > corresponds to the main architecture of the machine should be > considered, or the latest version between the various packages > should be chosen. In

Processed: Re: Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-11 Thread Debian Bug Tracking System
Processing control commands: > tags -1 patch Bug #858337 [apt-show-versions] apt-show-versions gives unreliable information Added tag(s) patch. -- 858337: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858337 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems

Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-11 Thread Vincent Lefevre
I think I've found the issue. If I add a "print" in the loop that builds $apackagescachefile: # Get available package information out of all Packages files foreach (@files) { print "file $_\n"; # Parse Packages file if creation time is newer than packages cache if (! -e

Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-11 Thread Vincent Lefevre
On 2023-07-11 09:31:54 +0200, Christoph Martin wrote: > Am 11.07.23 um 00:46 schrieb Vincent Lefevre: > > cventin:~> apt-show-versions -a libreoffice-common > > libreoffice-common:all 4:7.5.4-4 install ok installed > > libreoffice-common:all 4:7.4.5-3 stable ftp.debian.org > > No

Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-11 Thread Christoph Martin
Hi Vincent, Am 11.07.23 um 00:46 schrieb Vincent Lefevre: cventin:~> apt-show-versions -a libreoffice-common libreoffice-common:all 4:7.5.4-4 install ok installed libreoffice-common:all 4:7.4.5-3 stable ftp.debian.org No stable-updates version libreoffice-common:all 4:7.4.5-3

Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-10 Thread Vincent Lefevre
Hi Christoph, On 2023-07-10 16:36:56 +0200, Christoph Martin wrote: > Am 05.07.23 um 12:13 schrieb Vincent Lefevre: > > Control: retitle -1 apt-show-versions gives unreliable information > > Control: severity -1 grave > > I still can not reproduce your problem. > > Please try to find out, which

Processed: Re: Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-10 Thread Debian Bug Tracking System
Processing control commands: > tags -1 + moreinfo Bug #858337 [apt-show-versions] apt-show-versions gives unreliable information Added tag(s) moreinfo. -- 858337: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858337 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems

Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-10 Thread Christoph Martin
Control: tags -1 + moreinfo Hi Vincent, Am 05.07.23 um 12:13 schrieb Vincent Lefevre: Control: retitle -1 apt-show-versions gives unreliable information Control: severity -1 grave I still can not reproduce your problem. Please try to find out, which value is missing in a Packages file,

Bug#858337: apt-show-versions: wrong output when version of an installed package is missing from the Packages files

2023-07-05 Thread Vincent Lefevre
On 2023-07-05 12:13:54 +0200, Vincent Lefevre wrote: > A last thing: > /var/lib/apt/lists/ftp.debian.org_debian_dists_testing_non-free-firmware_binary-i386_Packages > has > > Package: libreoffice-common > Source: libreoffice > Version: 4:7.4.5-3 > > but amd64 is the main architecture, and apt