depot/pkgs/development/perl-modules/Device-OUI-1.04-hash.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

11 lines
517 B
Diff

--- Device-OUI-1.04/lib/Device/OUI.pm.orig 2009-03-07 02:23:17.000000000 +0000
+++ Device-OUI-1.04/lib/Device/OUI.pm 2016-08-09 08:19:00.642799675 +0100
@@ -54,7 +54,7 @@
for my $x ( keys %hash ) {
if ( not defined $hash{ $x } ) { $hash{ $x } = '' }
}
- return $handle->{ $oui } = join( "\0", %hash );
+ return $handle->{ $oui } = join( "\0", map {$_,$hash{$_}} sort keys %hash );
} elsif ( my $x = $handle->{ $oui } ) {
return { split( "\0", $x ) };
}