[Git][reproducible-builds/strip-nondeterminism][master] 2 commits: DRY: use $full_name

Chris Lamb (@lamby) gitlab at salsa.debian.org
Fri May 24 18:02:56 UTC 2024



Chris Lamb pushed to branch master at Reproducible Builds / strip-nondeterminism


Commits:
d32a5ff8 by Ed J at 2024-05-24T13:54:42+01:00
DRY: use $full_name

- - - - -
b8e5d87e by Chris Lamb at 2024-05-24T18:02:42+00:00
Merge branch 'dry' into 'master'

DRY: use $full_name

See merge request reproducible-builds/strip-nondeterminism!17
- - - - -


1 changed file:

- lib/File/StripNondeterminism/handlers/zip.pm


Changes:

=====================================
lib/File/StripNondeterminism/handlers/zip.pm
=====================================
@@ -267,13 +267,13 @@ sub normalize {
 
 		no warnings qw(redefine);
 		no strict qw(refs);
-		*{"Archive\::Zip\::Member\::$_"} = sub {
+		*$full_name = sub {
 			my $result = $orig_sub->(@_);
 			return defined($result) ?
 				normalize_extra_fields($canonical_time, $result) : $result;
 		};
 
-		sub { *{"Archive\::Zip\::Member\::$_"} = $orig_sub };
+		sub { *$full_name = $orig_sub };
 	} qw(cdExtraField localExtraField);
 
 	return 0 unless $zip->overwrite() == AZ_OK;



View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/compare/fe05913c2e02d2c17fcdf47b23aada203196b20c...b8e5d87eeb5dabc83ac45b4c6a4923543736c5ea

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/compare/fe05913c2e02d2c17fcdf47b23aada203196b20c...b8e5d87eeb5dabc83ac45b4c6a4923543736c5ea
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20240524/2d71ffa0/attachment.htm>


More information about the rb-commits mailing list