[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/rbm][main] Bug 40073: Remove the ./ prefix when zipping files.



Title: GitLab

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:

Changes:

  • lib/RBM/DefaultConfig.pm
    ... ... @@ -607,7 +607,7 @@ TAR_END
    607 607
     find [% src.join(' ') %] -exec touch -m -t [% date.format(c('timestamp'), format = '%Y%m%d%H%M') %] -- {} +
    
    608 608
     find [% src.join(' ') %] [% IF c('gnu_utils') %]-executable[% ELSE %]-perm +0111[% END %] -exec chmod 700 {} \\;
    
    609 609
     find [% src.join(' ') %] ! [% IF c('gnu_utils') %]-executable[% ELSE %]-perm +0111[% END %] -exec chmod 600 {} \\;
    
    610
    -find [% src.join(' ') %] | sort | \
    
    610
    +find [% src.join(' ') %][% IF c("use_7z") -%] -printf '%P\\n'[% END %] | sort | \
    
    611 611
     [% IF c("use_7z") -%]
    
    612 612
             cat > "\$tmp7z"
    
    613 613
             [% c('7z_bin') %] a -tzip -spf [% c('7z_opts') %] [% c('zip_args', { error_if_undef => 1 }) %] "@\$tmp7z"
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits