Here's patches to fix gnupod, as attachments, as they should have been.
Sorry about that,
Steve
--- /usr/local/lib/perl5/site_perl/GNUpod/XMLhelper.pm.orig 2019-04-29 20:45:40.054385000 +0100
+++ /usr/local/lib/perl5/site_perl/GNUpod/XMLhelper.pm 2019-04-29 20:45:50.724704000 +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";
--- /usr/local/lib/perl5/site_perl/GNUpod/FileMagic.pm.orig 2018-04-25 23:49:44.587365000 +0100
+++ /usr/local/lib/perl5/site_perl/GNUpod/FileMagic.pm 2019-04-29 20:50:27.565552000 +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,10 @@
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});
+ my %hh = %$options;
+ $joinby = $hh{joinby} if $hh{joinby};
+ $wspace = lc($hh{wspace}) if $hh{wspace};
+ $case = lc($hh{case}) if $hh{case};
}
my $merged = "";
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"