FreeBSD Bugzilla – Attachment 235058 Details for
Bug 265018
audio/gnupod: fix deprecated use of defined(@array)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix deprecated uses of defined(@array)
patch-FileMagic-and-XMLhelper.pm (text/plain), 1.53 KB, created by
Stephen Roome
on 2022-07-03 21:44:54 UTC
(
hide
)
Description:
Patch to fix deprecated uses of defined(@array)
Filename:
MIME Type:
Creator:
Stephen Roome
Created:
2022-07-03 21:44:54 UTC
Size:
1.53 KB
patch
obsolete
>--- src/ext/FileMagic.pm.orig 2009-07-11 00:20:05.000000000 +0100 >+++ src/ext/FileMagic.pm 2022-07-03 22:22:24.750066000 +0100 >@@ -362,7 +362,7 @@ > foreach (keys(%{$in})) { > my $kvp = __flatten($_, $exclude); # key > next if !defined($kvp); >- my $v = __flatten(%{$in}->{$_}, $exclude); # value >+ my $v = __flatten({$in->{$_}}, $exclude); # value > $kvp .= " : ".$v if (defined($v) && ("$v" ne "")); > push @out, $kvp; > } >@@ -418,9 +418,9 @@ > my $case = "check"; > > if (ref($options) eq "HASH") { >- $joinby = %{$options}->{joinby} if defined(%{$options}->{joinby}); >- $wspace = lc(%{$options}->{wspace}) if defined(%{$options}->{wspace}); >- $case = lc(%{$options}->{case}) if defined(%{$options}->{case}); >+ $joinby = $options->{joinby} if $options->{joinby}; >+ $wspace = lc($options->{wspace}) if $options->{wspace}; >+ $case = lc($options->{case}) if $options->{case}; > } > my $merged = ""; > >--- src/ext/XMLhelper.pm.orig 2009-07-11 00:20:05.000000000 +0100 >+++ src/ext/XMLhelper.pm 2022-07-03 22:22:34.918120000 +0100 >@@ -359,7 +359,7 @@ > print OUT " </smartplaylist>\n"; > } > elsif(my $phr = get_plpref($current_plname)) { #plprefs found.. >- if (defined(@{$XDAT->{playlists}->{data}->{$current_plname}})) { #the playlist is not empty >+ if (@{$XDAT->{playlists}->{data}->{$current_plname}}) { #the playlist is not empty > print OUT "\n ".mkfile({playlist=>$phr}, {return=>1,noend=>1})."\n"; > foreach(@{$XDAT->{playlists}->{data}->{$current_plname}}) { > print OUT " $_\n";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265018
:
235058
|
235677