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 
$packages->{$package->{$PACKAGE}}{$package->{$ARCH}}{$VERS} or
                     
$vs->compare($packages->{$package->{$PACKAGE}}{$package->{$ARCH}}{$VERS},
                          $package->{$VERS}) < 0) {
                     $package->{$RELEASE} = $release;
                     $packages->{$package->{$PACKAGE}}{$package->{$ARCH}} = 
$package;
                 }

So, if I understand correctly, if a Packages file contains several
versions of a package, the most recent one will be chosen. But such
a comparison is absent when these versions are in different Packages
files. I've attached a patch to add this comparison. Now, if I do

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to