aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-01-17 10:10:31 +0100
committerGitHub <noreply@github.com>2022-01-17 10:10:31 +0100
commitbb24d1edd7c0d0c47a85b39c0c2c2b3093e897b6 (patch)
tree219ba194e208cd38df1d6f2310ee22a7982025f9
parente1720b8e9d35667540cca3dc85cdb9b8b493b30f (diff)
parent81cd0a113b8da1485c2f892c9dd9edb541f139ad (diff)
Merge pull request #5914 from NixOS/5911-fix-nix-why-depends-pager
Start the pager early-enough in `nix why-depends`
-rw-r--r--src/nix/why-depends.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/why-depends.cc b/src/nix/why-depends.cc
index e27f56ef5..dd43bd1c3 100644
--- a/src/nix/why-depends.cc
+++ b/src/nix/why-depends.cc
@@ -239,7 +239,6 @@ struct CmdWhyDepends : SourceExprCommand
visitPath(pathS);
- RunPager pager;
for (auto & ref : refs) {
std::string hash(ref.second->path.hashPart());
@@ -259,6 +258,7 @@ struct CmdWhyDepends : SourceExprCommand
}
};
+ RunPager pager;
try {
printNode(graph.at(packagePath), "", "");
} catch (BailOut & ) { }