Tweak recompress code
This commit is contained in:
parent
6ae364773a
commit
330c63e67d
|
@ -647,13 +647,13 @@ sub recompress {
|
||||||
|
|
||||||
# Packages and Sources files; workaround for bug #402482
|
# Packages and Sources files; workaround for bug #402482
|
||||||
if ($filename =~ m/\/.*\/(Packages|Sources)$/o) {
|
if ($filename =~ m/\/.*\/(Packages|Sources)$/o) {
|
||||||
print LOG "Recompressing $filename\n";
|
system("rm -f $_.gz");
|
||||||
system("gzip -9c < $_ >$_.gz");
|
system("gzip -9c < $_ >$_.gz");
|
||||||
}
|
}
|
||||||
# Translation files need to be compressed in .gz format on CD?
|
# Translation files need to be compressed in .gz format on CD?
|
||||||
if ($filename =~ m/\/.*\/i18n\/(Translation.*)$/o &&
|
if ($filename =~ m/\/.*\/i18n\/(Translation.*)$/o &&
|
||||||
! ($filename =~ m/\/.*\/i18n\/(Translation.*gz)$/o)) {
|
! ($filename =~ m/\/.*\/i18n\/(Translation.*gz)$/o)) {
|
||||||
print LOG "Recompressing $filename\n";
|
system("rm -f $_.gz");
|
||||||
system("gzip -9c < $_ >$_.gz");
|
system("gzip -9c < $_ >$_.gz");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue