| 17 |
"suite=s" => \$suite, |
"suite=s" => \$suite, |
| 18 |
"output=s", \$output) |
"output=s", \$output) |
| 19 |
|| ! @ARGV) { |
|| ! @ARGV) { |
| 20 |
die "usage: $0 [--suite suite] [--html] [--output=file] [--debug] list ...\n"; |
die "usage: $0 [--suite suite] [--html] [--output=file] [--debug] advisorylist dtsalist...\n"; |
| 21 |
} |
} |
| 22 |
|
|
| 23 |
if (defined $output) { |
if (defined $output) { |
| 72 |
push @{$data{$package}{$condition}}, {item => $item, urgency => $urgency}; |
push @{$data{$package}{$condition}}, {item => $item, urgency => $urgency}; |
| 73 |
} |
} |
| 74 |
|
|
| 75 |
foreach my $list (@ARGV) { |
die ("No DTSA list specified") if (! length @ARGV[1]); |
| 76 |
|
my $dtsalist = @ARGV[1]; |
| 77 |
|
foreach my $list (@ARGV[0]) { |
| 78 |
if (-d $list) { |
if (-d $list) { |
| 79 |
$list="$list/list"; |
$list="$list/list"; |
| 80 |
} |
} |
| 155 |
my @fields = split(/\s*\|\s*/, $maddy); |
my @fields = split(/\s*\|\s*/, $maddy); |
| 156 |
my $havver=$fields[1]; |
my $havver=$fields[1]; |
| 157 |
my $arches=$fields[3]; |
my $arches=$fields[3]; |
| 158 |
|
my $dtsacmp=1; |
| 159 |
$version=~s/\s+//; # strip whitespace |
$version=~s/\s+//; # strip whitespace |
| 160 |
$arches=~s/\s+$//; |
$arches=~s/\s+$//; |
| 161 |
my $cmp=system("dpkg --compare-versions '$havver' '>=' '$version'"); |
my $cmp=system("dpkg --compare-versions '$havver' '>=' '$version'"); |
| 162 |
if ($cmp != 0) { |
|
| 163 |
|
my $dtsaver = `grep "\\- $package" $dtsalist|awk '{print \$3}'`; |
| 164 |
|
chomp $dtsaver; |
| 165 |
|
if (length($dtsaver)) { |
| 166 |
|
my $hdcmp=system("dpkg --compare-versions '$havver' '>=' '$dtsaver'"); |
| 167 |
|
if ($hdcmp != 0 && $vdcmp == 0) { |
| 168 |
|
record($package, "have $dtsaver in secure-testing archive, but $havver is in main archive",$id, $urgency); |
| 169 |
|
} |
| 170 |
|
$dtsacmp = 0; |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
if ($cmp != 0 && $dtsacmp !=0) { |
| 174 |
if ($html && $suite eq 'testing') { |
if ($html && $suite eq 'testing') { |
| 175 |
$havver='<a href="http://bjorn.haxx.se/debian/testing.pl?package='.uri_escape($package).'">'.$havver.'</a>'; |
$havver='<a href="http://bjorn.haxx.se/debian/testing.pl?package='.uri_escape($package).'">'.$havver.'</a>'; |
| 176 |
} |
} |