Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-backup/flexbackup/files: flexbackup-1.2.1-perl-5.12-deprecation-warning2.patch
Date: Sat, 09 Oct 2010 12:03:15
Message-Id: 20101009112530.E42232004C@flycatcher.gentoo.org
1 graaff 10/10/09 11:25:30
2
3 Added:
4 flexbackup-1.2.1-perl-5.12-deprecation-warning2.patch
5 Log:
6 Update patch for perl 5.12 warnings as suggested by Paul Colquhoun in bug 333909.
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.12-deprecation-warning2.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.12-deprecation-warning2.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.12-deprecation-warning2.patch?rev=1.1&content-type=text/plain
14
15 Index: flexbackup-1.2.1-perl-5.12-deprecation-warning2.patch
16 ===================================================================
17 --- flexbackup.~1~ 2010-10-09 13:19:27.633694860 +0200
18 +++ flexbackup 2010-10-09 13:21:52.396818511 +0200
19 @@ -133,6 +133,9 @@
20 # tar has a limit of this many chars in its volume label
21 $::tar_max_label = 99;
22
23 +# Define the prune hash to avoid warnings with perl 5.12
24 +use vars qw( %prune );
25 +
26 # Get commandline flags
27 %::opt = ();
28 if (! &::GetOptions(\%::opt,
29 @@ -1050,7 +1053,7 @@
30 } else {
31 $prunekey = $dir;
32 }
33 - if (defined(%{$::prune{$prunekey}})) {
34 + if (defined($prune{$prunekey})) {
35 &log("| NOTE: \$prune is ignored for type=dump");
36 }