X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=perl%2FAmanda%2FDB%2FCatalog.pm;h=0aa88fa420bd946b73c6666a4bb8278a607d92ef;hb=c6f0a88c567f8536c498f554285aed1f8150da18;hp=162c731e87abd1fa2249f618a4827f02f138ea3a;hpb=cd0b924f27312d57bd42f6c4fae2b795139e2d0b;p=debian%2Famanda diff --git a/perl/Amanda/DB/Catalog.pm b/perl/Amanda/DB/Catalog.pm index 162c731..0aa88fa 100644 --- a/perl/Amanda/DB/Catalog.pm +++ b/perl/Amanda/DB/Catalog.pm @@ -401,11 +401,10 @@ TODO: add_dump =cut -use Amanda::Logfile qw( :constants match_disk match_host - match_datestamp match_level ); +use Amanda::Logfile qw( :constants ); use Amanda::Tapelist; use Amanda::Config qw( :init :getconf config_dir_relative ); -use Amanda::Util qw( quote_string weaken_ref ); +use Amanda::Util qw( quote_string weaken_ref match_disk match_host match_datestamp match_level); use File::Glob qw( :glob ); use warnings; use strict; @@ -903,7 +902,7 @@ sub sort_dumps { for my $key (@$keys) { my ($rev, $k) = ($key =~ /^(-?)(.*)$/); - if ($k =~ /^(nparts|level)$/) { + if ($k =~ /^(nparts|level|filenum)$/) { # compare dump components numerically $res = $a->{$k} <=> $b->{$k}; } else { # ($k =~ /^(hostname|diskname|write_timestamp|dump_timestamp)$/)