From a4b7239d7161c33a30c31ae16909c84883758d9b Mon Sep 17 00:00:00 2001 From: Gioele Barabucci Date: Tue, 15 Mar 2022 11:08:14 +0100 Subject: [PATCH] mmdebstrap: Show APT's dependency trace when in debug mode A dependency trace is a powerful tool to debug issues related to APT's selection of packages, especially in custom mode. Thus it makes sense to ask APT to output a dependency trace when `mmdebstrap` is run with the `--debug` flag. --- mmdebstrap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index 4c062c5..c826ede 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -2085,6 +2085,9 @@ sub run_download() { 'apt-get', '--yes', '-oApt::Get::Download-Only=true', + ($verbosity_level >= 3) ? '-oDebug::pkgProblemResolver=true' : (), + ($verbosity_level >= 3) ? '-oDebug::pkgDepCache::Marker=1' : (), + ($verbosity_level >= 3) ? '-oDebug::pkgDepCache::AutoInstall=1' : (), $options->{dryrun} ? '-oAPT::Get::Simulate=true' : (), 'install' ],