mirror-channel.pl: add binary patches option, set ENABLE_PATCHES env var

git-svn-id: https://nixos.org/repos/nix/release/trunk/channels@24132 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
This commit is contained in:
Rob Vermaas 2010-10-07 12:19:46 +00:00
parent 34d4018237
commit b3d95b30d8

View file

@ -113,8 +113,8 @@ while (my ($storePath, $files) = each %narFiles) {
writeManifest("$dstChannelPath/MANIFEST.tmp", \%narFiles, \%patches);
# Generate patches.
if (0 && -e "$dstChannelPath/MANIFEST.tmp") {
system("perl -I /home/buildfarm/nix/scripts /home/buildfarm/nix/scripts/generate-patches.pl $narPath $patchesPath $patchesURL $dstChannelPath/MANIFEST $dstChannelPath/MANIFEST.tmp") == 0 or die;
if (defined $ENV{'ENABLE_PATCHES'} && -e "$dstChannelPath/MANIFEST.tmp") {
system("generate-patches.pl $narPath $patchesPath $patchesURL $dstChannelPath/MANIFEST $dstChannelPath/MANIFEST.tmp") == 0 or die;
}
rename("$dstChannelPath/MANIFEST.tmp", "$dstChannelPath/MANIFEST") or die;