aboutsummaryrefslogtreecommitdiff
path: root/scripts/readmanifest.pm.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-11-29 15:26:28 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-11-29 15:26:28 +0000
commitd3bba0c2d8b879950d55d508ef3fc8dec3559f8f (patch)
tree2cabf273227caa8bd0c44e1040f32f434d6a989f /scripts/readmanifest.pm.in
parent9737a7eba0844e317591f16092879696c4f3feae (diff)
* Move the patch generator into a module.
Diffstat (limited to 'scripts/readmanifest.pm.in')
-rw-r--r--scripts/readmanifest.pm.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/readmanifest.pm.in b/scripts/readmanifest.pm.in
index 82a01e5ab..be0dda616 100644
--- a/scripts/readmanifest.pm.in
+++ b/scripts/readmanifest.pm.in
@@ -146,7 +146,7 @@ sub readManifest {
sub writeManifest {
- my ($manifest, $narFiles, $patches) = @_;
+ my ($manifest, $narFiles, $patches, $noCompress) = @_;
open MANIFEST, ">$manifest.tmp"; # !!! check exclusive
@@ -198,11 +198,13 @@ sub writeManifest {
# Create a bzipped manifest.
- system("@bzip2@ < $manifest > $manifest.bz2.tmp") == 0
- or die "cannot compress manifest";
+ unless (defined $noCompress) {
+ system("@bzip2@ < $manifest > $manifest.bz2.tmp") == 0
+ or die "cannot compress manifest";
- rename("$manifest.bz2.tmp", "$manifest.bz2")
- or die "cannot rename $manifest.bz2.tmp: $!";
+ rename("$manifest.bz2.tmp", "$manifest.bz2")
+ or die "cannot rename $manifest.bz2.tmp: $!";
+ }
}