Subject: | Android-compatible flags for gzip |
Howdy,
Turns out that on *some* android devices/versions, gzip won't take compound flags like '-cdf', but it'll accept them as '-c -d -f'. For example, -cdf worked on my OUYA, but fails on my phone and on a 4.0.3 emulator with:
# gzip -cdf f
-cdf: No such file or directory
# gzip -c -d -f f
gzip: can't gzopen f
The patch for Archive::Extract is pretty simple:
- my $cmd = [ $self->bin_gzip, '-cdf', $self->archive ];
+ my $cmd = [ $self->bin_gzip, '-c', '-d', '-f', $self->archive ];
But I'm not sure if that might cause problems on other platforms?