X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=perl%2FAmanda%2FTaper%2FScan.pm;fp=perl%2FAmanda%2FTaper%2FScan.pm;h=7d05c73c76b5589c5f5e50d5220419ec6bc6c676;hb=d28952249e392eb31bc8eecc53f6c477f30c617b;hp=d8d7a414ab79490d3f4c76b74474969ebb378d1c;hpb=949b8910a5e23c4285d0b1aedacfc82a14dc97a5;p=debian%2Famanda diff --git a/perl/Amanda/Taper/Scan.pm b/perl/Amanda/Taper/Scan.pm index d8d7a41..7d05c73 100644 --- a/perl/Amanda/Taper/Scan.pm +++ b/perl/Amanda/Taper/Scan.pm @@ -1,8 +1,9 @@ # Copyright (c) 2010-2012 Zmanda, Inc. All Rights Reserved. # -# This library is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License version 2.1 as -# published by the Free Software Foundation. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +#* License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY @@ -337,6 +338,7 @@ sub oldest_reusable_volume { for my $tle (@{$self->{'tapelist'}->{'tles'}}) { next unless $tle->{'reuse'}; next if $tle->{'datestamp'} eq '0' and !$params{'new_label_ok'}; + next if $tle->{'label'} !~ $self->{'labelstr'}; $num_acceptable++; $best = $tle; }