From b3d95b30d8c450ec4364458399f32d9c36f74e2d Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 7 Oct 2010 12:19:46 +0000 Subject: [PATCH] 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 --- mirror-channel.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirror-channel.pl b/mirror-channel.pl index c50284e..db3d56d 100644 --- a/mirror-channel.pl +++ b/mirror-channel.pl @@ -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;