bug 407351: add bzip2 support to Bootstrap::Step::Stage. r=rhelmer, patch=me
git-svn-id: svn://10.0.0.236/trunk@240740 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
67b4812074
commit
214a3549f1
@ -608,13 +608,17 @@ sub IsValidLocaleDeliverable {
|
||||
my $this = shift;
|
||||
my %args = @_;
|
||||
|
||||
my $useTarGz = $config->Exists(var => 'useTarGz') ?
|
||||
$config->Get(var => 'useTarGz') : 0;
|
||||
my $linuxExtension = ($useTarGz) ? '.gz' : '.bz2';
|
||||
|
||||
my $dirent = $File::Find::name;
|
||||
|
||||
my ($locale, $platform);
|
||||
my @parts = split(/\./, basename($dirent));
|
||||
my $partsCount = scalar(@parts);
|
||||
|
||||
if ($dirent =~ /\.tar\.gz/) {
|
||||
if ($dirent =~ /\.tar\.$linuxExtension) {
|
||||
# e.g. firefox-2.0.0.2.sk.linux-i686.tar.gz
|
||||
$locale = $parts[$partsCount - 4];
|
||||
$platform = 'linux';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user