aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/system-package-manager-debian.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/bpkg/system-package-manager-debian.cxx b/bpkg/system-package-manager-debian.cxx
index b029901..08767d3 100644
--- a/bpkg/system-package-manager-debian.cxx
+++ b/bpkg/system-package-manager-debian.cxx
@@ -792,7 +792,12 @@ namespace bpkg
process pr;
if (!simulate_)
- pr = process (pp, args);
+ {
+ // Redirect stdout to stderr since apt-get prints some of its
+ // diagnostics to stdout.
+ //
+ pr = process (pp, args, 0 /* stdin */, 2 /* stdout */);
+ }
else
{
print_process (args);
@@ -854,7 +859,12 @@ namespace bpkg
process pr;
if (!simulate_)
- pr = process (pp, args);
+ {
+ // Redirect stdout to stderr since apt-get prints some of its
+ // diagnostics to stdout.
+ //
+ pr = process (pp, args, 0 /* stdin */, 2 /* stdout */);
+ }
else
{
print_process (args);