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:
parent
34d4018237
commit
b3d95b30d8
|
@ -113,8 +113,8 @@ while (my ($storePath, $files) = each %narFiles) {
|
||||||
writeManifest("$dstChannelPath/MANIFEST.tmp", \%narFiles, \%patches);
|
writeManifest("$dstChannelPath/MANIFEST.tmp", \%narFiles, \%patches);
|
||||||
|
|
||||||
# Generate patches.
|
# Generate patches.
|
||||||
if (0 && -e "$dstChannelPath/MANIFEST.tmp") {
|
if (defined $ENV{'ENABLE_PATCHES'} && -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;
|
system("generate-patches.pl $narPath $patchesPath $patchesURL $dstChannelPath/MANIFEST $dstChannelPath/MANIFEST.tmp") == 0 or die;
|
||||||
}
|
}
|
||||||
|
|
||||||
rename("$dstChannelPath/MANIFEST.tmp", "$dstChannelPath/MANIFEST") or die;
|
rename("$dstChannelPath/MANIFEST.tmp", "$dstChannelPath/MANIFEST") or die;
|
||||||
|
|
Loading…
Reference in a new issue