From 5d377ace2d74475ef696bce4ac0e61946d5b3769 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 3 Jan 2017 11:42:56 +0100 Subject: [PATCH] Update upload-release script --- maintainers/upload-release.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maintainers/upload-release.pl b/maintainers/upload-release.pl index 6c9a724dd..743829e3f 100755 --- a/maintainers/upload-release.pl +++ b/maintainers/upload-release.pl @@ -86,6 +86,7 @@ my ($tarball_x86_64_linux, $tarball_x86_64_linux_hash) = downloadFile("binaryTar my ($tarball_x86_64_darwin, $tarball_x86_64_darwin_hash) = downloadFile("binaryTarball.x86_64-darwin", "1"); # Update Nixpkgs in a very hacky way. +system("cd $nixpkgsDir && git pull") == 0 or die; my $oldName = `nix-instantiate --eval $nixpkgsDir -A nix.name`; chomp $oldName; my $oldHash = `nix-instantiate --eval $nixpkgsDir -A nix.src.outputHash`; chomp $oldHash; print STDERR "old stable version in Nixpkgs = $oldName / $oldHash\n"; @@ -135,6 +136,9 @@ system("git tag --force --sign $version $nixRev -m 'Tagging release $version'") # Update the website. my $siteDir = "/home/eelco/Dev/nixos-homepage-pristine"; + +system("cd $siteDir && git pull") == 0 or die; + write_file("$siteDir/nix-release.tt", "[%-\n" . "latestNixVersion = \"$version\"\n" .