Commit 64dc6871 authored by Simon McVittie's avatar Simon McVittie

collect-dbgsym: Be more verbose

Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent bd8f60a9
......@@ -120,6 +120,7 @@ def main():
parser = argparse.ArgumentParser(
description='Install corresponding -dbgsym packages if available',
)
parser.add_argument('--debug', action='store_true', default=False)
parser.add_argument('sysroot')
args = parser.parse_args()
......@@ -240,10 +241,17 @@ def main():
for binary_stanza in same_name:
logger.info('Available version:\n%s', binary_stanza)
options = ['-y', '-m']
if args.debug:
options.append('-oDebug::pkgDepCache::AutoInstall=true')
options.append('-oDebug::pkgDepCache::Marker=true')
options.append('-oDebug::pkgPolicy=true')
options.append('-oDebug::pkgProblemResolver=true')
options.append('-oDebug::pkgProblemResolver::ShowScores=true')
subprocess.run(
in_chroot + [
'apt-get', '-y', '-q', '-q', '-m', 'install',
] + list(to_get),
in_chroot + ['apt-get'] + options + ['install'] + list(to_get),
check=True,
)
......
......@@ -97,7 +97,7 @@ actions:
command: |
set -e
echo
"$RECIPEDIR/collect-dbgsym" "$ROOTDIR"
"$RECIPEDIR/collect-dbgsym" {{ if $apt_debug }}--debug{{ end }} "$ROOTDIR"
{{ end }}
# We do this as a separate step in case it involves removing any
# of the common packages, or replacing automatic debug symbols with
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment