diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-store/nix-store.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 481e26cdb..63635b52d 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -417,9 +417,9 @@ static void opDumpDB(Strings opFlags, Strings opArgs) if (!opArgs.empty()) throw UsageError("no arguments expected"); PathSet validPaths = store->queryValidPaths(); - /* !!! this isn't streamy; makeValidityRegistration() builds a - potentially gigantic string. */ - cout << makeValidityRegistration(validPaths, true, true); + foreach (PathSet::iterator, i, validPaths) { + cout << makeValidityRegistration(singleton<PathSet>(*i), true, true); + } } |