Skip to content
Snippets Groups Projects
Verified Commit 060cdc8e authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

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).
parent 361bc547
Branches
No related tags found
1 merge request!60Bug 40073: Remove the ./ prefix when zipping files.
......@@ -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"
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment