Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / RBM
Commits: 060cdc8e by Pier Angelo Vendrame at 2024-02-27T10:23:33+01:00 Bug 40073: Remove the ./ prefix when zipping files.
When using 7-zip, the ./ prefix is added to the archive, and it breaks some consumers (e.g., Firefox when re-packing omni.ja).
- - - - -
1 changed file:
- lib/RBM/DefaultConfig.pm
Changes:
===================================== lib/RBM/DefaultConfig.pm ===================================== @@ -607,7 +607,7 @@ TAR_END find [% src.join(' ') %] -exec touch -m -t [% date.format(c('timestamp'), format = '%Y%m%d%H%M') %] -- {} + find [% src.join(' ') %] [% IF c('gnu_utils') %]-executable[% ELSE %]-perm +0111[% END %] -exec chmod 700 {} \; find [% src.join(' ') %] ! [% IF c('gnu_utils') %]-executable[% ELSE %]-perm +0111[% END %] -exec chmod 600 {} \; -find [% src.join(' ') %] | sort | \ +find [% src.join(' ') %][% IF c("use_7z") -%] -printf '%P\n'[% END %] | sort | \ [% IF c("use_7z") -%] cat > "$tmp7z" [% c('7z_bin') %] a -tzip -spf [% c('7z_opts') %] [% c('zip_args', { error_if_undef => 1 }) %] "@$tmp7z"
View it on GitLab: https://gitlab.torproject.org/tpo/applications/rbm/-/commit/060cdc8e82a1d31c...
tbb-commits@lists.torproject.org