git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ee1906
)
perl: Don't use qw() as parentheses.
author
Richard W.M. Jones
<rjones@redhat.com>
Sat, 18 Jun 2011 12:00:00 +0000
(13:00 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sat, 18 Jun 2011 12:00:00 +0000
(13:00 +0100)
In Perl 5.14:
Use of qw(...) as parentheses is deprecated at perl/blib/lib/Sys/Guestfs/Lib.pm line 1111.
perl/lib/Sys/Guestfs/Lib.pm
patch
|
blob
|
history
diff --git
a/perl/lib/Sys/Guestfs/Lib.pm
b/perl/lib/Sys/Guestfs/Lib.pm
index
95c18a5
..
188d735
100644
(file)
--- a/
perl/lib/Sys/Guestfs/Lib.pm
+++ b/
perl/lib/Sys/Guestfs/Lib.pm
@@
-1108,7
+1108,7
@@
sub _find_grub_prefix
die(__"Can't find grub on guest") unless($g->exists('/boot/grub/menu.lst'));
# Look for the most specific mount point in mounts
- foreach my $path
qw(/boot/grub /boot /
) {
+ foreach my $path
(qw(/boot/grub /boot /)
) {
if(exists($mounts->{$path})) {
return "" if($path eq '/');
return $path;