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.
This commit is contained in:
Gioele Barabucci 2022-03-15 11:08:14 +01:00
parent 64ba5f8229
commit a4b7239d71

View file

@ -2085,6 +2085,9 @@ sub run_download() {
'apt-get', 'apt-get',
'--yes', '--yes',
'-oApt::Get::Download-Only=true', '-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' : (), $options->{dryrun} ? '-oAPT::Get::Simulate=true' : (),
'install' 'install'
], ],