about summary refs log tree commit diff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-08-04T12·29+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-08-04T12·29+0000
commitc4f98941ed7e5e07786d92fc0be4435878f9b3cd (patch)
tree55d95e84f9ac65711144dd9456f71b0acc516ef8 /src/libstore/local-store.cc
parent03427e76f11fe1d918020d28bdb69b2fb348ee96 (diff)
* nix-env --dry-run: show the total size of the substituter
  downloads.

Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 6926c49370d8..141c7a85297f 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -565,7 +565,10 @@ bool LocalStore::querySubstitutablePathInfo(const Path & path,
                 Path p; getline(*run.from, p);
                 info.references.insert(p);
             }
-            info.downloadSize = 0;
+            getline(*run.from, s);
+            long long size;
+            if (!string2Int(s, size)) abort();
+            info.downloadSize = size;
             return true;
         }
     }