about summary refs log tree commit diff
path: root/maintainers
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-01-03T10·42+0100
committerEelco Dolstra <edolstra@gmail.com>2017-01-03T10·42+0100
commit5d377ace2d74475ef696bce4ac0e61946d5b3769 (patch)
tree25d99e84863e1886011feca085076079b0b85e4b /maintainers
parentc287e797a889202b1d603be4b445b961c37fb9b5 (diff)
Update upload-release script
Diffstat (limited to 'maintainers')
-rwxr-xr-xmaintainers/upload-release.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/maintainers/upload-release.pl b/maintainers/upload-release.pl
index 6c9a724dd6..743829e3f5 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" .