summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Dumont <dod@debian.org>2021-09-08 18:04:21 +0200
committerDominique Dumont <dod@debian.org>2021-09-08 18:08:11 +0200
commitca6aa5eea6ac311efad0aa7458c08c9eab9ec525 (patch)
treedc7241189ad6f1c95f92282a476e9b37cf9f8568
parent756cfb508919082035687a11e76c799c20abcfbe (diff)
filter old packages coming from rmadison
So that cme can better detect out of date versioned dependencies. Up to now, a version listed by rmadison was considered as recent enough. But look at this output of rmadison $ rmadison libpath-tiny-perl libpath-tiny-perl | 0.058-1 | oldoldoldstable | source, all libpath-tiny-perl | 0.100-1 | oldoldstable | source, all libpath-tiny-perl | 0.108-1 | oldstable | source, all libpath-tiny-perl | 0.118-1 | stable | source, all libpath-tiny-perl | 0.118-1 | testing | source, all libpath-tiny-perl | 0.118-1 | unstable | source, all rmadison keeps the history for too long time to be practical. Since we do not support backports on release older than oldstable, the oldold (or more) release are pruned.
-rw-r--r--lib/Config/Model/Dpkg/Dependency.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Config/Model/Dpkg/Dependency.pm b/lib/Config/Model/Dpkg/Dependency.pm
index bbffa284..c7642d86 100644
--- a/lib/Config/Model/Dpkg/Dependency.pm
+++ b/lib/Config/Model/Dpkg/Dependency.pm
@@ -959,6 +959,7 @@ sub extract_madison_info ($json) {
foreach my $name ( keys $data->%* ) {
my %avail;
foreach my $dist (keys $data->{$name}->%*) {
+ next if $dist =~ /oldold/; # skip too old versions
foreach my $available_v (keys $data->{$name}{$dist}->%*) {
my $arches = $data->{$name}{$dist}{$available_v}{architectures};
# see #841667: relevant pkg version is found in arch all or arch amd64