From cefe6deb04b35c87458327a8934e6ff5b35a45fa Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 3 Aug 2009 06:04:28 +0000 Subject: [PATCH] Initialize DB in fetchmtn svn path=/nixpkgs/trunk/; revision=16545 --- pkgs/build-support/fetchmtn/builder.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/build-support/fetchmtn/builder.sh b/pkgs/build-support/fetchmtn/builder.sh index 58fd7e41c9a7..f39e38168802 100644 --- a/pkgs/build-support/fetchmtn/builder.sh +++ b/pkgs/build-support/fetchmtn/builder.sh @@ -2,6 +2,11 @@ source $stdenv/setup set -x +if ! [ -f "$cacheDB" ]; then + echo "Creating cache DB $cacheDB" + mtn --db "$cacheDB" db init +fi + header "getting revision $selector"; done=;