From c816cd02a3040949ca4507d32f8e69a729826a3a Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 23 Nov 2009 17:17:52 +0100 Subject: [PATCH] update sourceforge download list script --- docs/tools/sf2bacula_downloads.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tools/sf2bacula_downloads.pl b/docs/tools/sf2bacula_downloads.pl index 94d9f553..23e2dc17 100755 --- a/docs/tools/sf2bacula_downloads.pl +++ b/docs/tools/sf2bacula_downloads.pl @@ -51,7 +51,7 @@ while (my $l = ) { # cat vers file if ($l =~ m!href="(/projects/bacula/files/(.+?)/(.+?)/(.+?)/download)"!) { - if ($cur && !exists $seen{$cur->{file}}) { + if ($cur && $cur->{date} && !exists $seen{$cur->{file}}) { push @{$cats{$cur->{cat}}}, $cur; $seen{$cur->{file}} = 1; } @@ -65,7 +65,7 @@ while (my $l = ) } # the size and the date are just after - if ($l =~ m!([\d\.]+ [KMG]iB)!) { + if ($l =~ m!([\d\.]+ [KMG]B)!) { $cur->{size} = $1; do { $l = ; -- 2.39.5