Merge pull request #7033 from NixOS/backport-7032-to-2.11-maintenance

[Backport 2.11-maintenance] RunPager: Stop the progress bar
This commit is contained in:
Théophane Hufschmitt
2023-03-03 13:40:00 +01:00
committed by GitHub

View File

@@ -4,6 +4,7 @@
#include "gc-store.hh"
#include "util.hh"
#include "loggers.hh"
#include "progress-bar.hh"
#include <algorithm>
#include <cctype>
@@ -410,6 +411,8 @@ RunPager::RunPager()
if (!pager) pager = getenv("PAGER");
if (pager && ((std::string) pager == "" || (std::string) pager == "cat")) return;
stopProgressBar();
Pipe toPager;
toPager.create();