mmdebstrap: Show APT's dependency trace when in debug mode #24

Closed
gioele wants to merge 1 commit from gioele/mmdebstrap:debug-show-apt-resolution into main
Showing only changes of commit 27fca53e1d - Show all commits

View file

@ -961,6 +961,16 @@ sub run_apt_download_progress {
} else { } else {
info "downloading packages with apt..."; info "downloading packages with apt...";
} }
if ($verbosity_level >= 3) {
my @apt_debug_opts = qw(
-oDebug::pkgProblemResolver=true
-oDebug::pkgDepCache::Marker=1
-oDebug::pkgDepCache::AutoInstall=1
);
push @{ $options->{APT_ARGV} }, @apt_debug_opts;
}
pipe my $rfh, my $wfh; pipe my $rfh, my $wfh;
my $pid = open my $fh, '-|' // error "fork() failed: $!"; my $pid = open my $fh, '-|' // error "fork() failed: $!";
if ($pid == 0) { if ($pid == 0) {