From 9de6bc5d05027363f968c20e53e8c3d5aa34f8b4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 20 Nov 2012 00:27:25 +0100 Subject: nix-store -r: Add ‘--ignore-unknown’ flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This flag causes paths that do not have a known substitute to be quietly ignored. This is mostly useful for Charon, allowing it to speed up deployment by letting a machine use substitutes for all substitutable paths, instead of uploading them. The latter is frequently faster, e.g. if the target machine has a fast Internet connection while the source machine is on a slow ADSL line. --- src/libmain/shared.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libmain/shared.hh') diff --git a/src/libmain/shared.hh b/src/libmain/shared.hh index b054b0717f26..ff89e86389c2 100644 --- a/src/libmain/shared.hh +++ b/src/libmain/shared.hh @@ -30,6 +30,10 @@ void printGCWarning(); void printMissing(StoreAPI & store, const PathSet & paths); +void printMissing(const PathSet & willBuild, + const PathSet & willSubstitute, const PathSet & unknown, + unsigned long long downloadSize, unsigned long long narSize); + template N getIntArg(const string & opt, Strings::iterator & i, const Strings::iterator & end) { -- cgit 1.4.1