patchupdate.py: Also list indirect dependencies for each patch in patchinstall.sh.

This commit is contained in:
Sebastian Lackner
2015-08-21 08:49:39 +02:00
parent ca01e366ef
commit 1dc5f2f601
2 changed files with 51 additions and 48 deletions

View File

@@ -684,9 +684,10 @@ def generate_script(all_patches):
# List dependencies (if any)
if len(patch.depends):
lines.append("# | This patchset has the following dependencies:\n")
depends = resolve_dependencies(all_patches, i)
lines.append("# | This patchset has the following (direct or indirect) dependencies:\n")
lines.append("# | *\t%s\n" % "\n# | \t".join(textwrap.wrap(
", ".join([all_patches[j].name for j in sorted(patch.depends)]), 120)))
", ".join([all_patches[j].name for j in depends]), 120)))
lines.append("# |\n")
# List all bugs fixed by this patchset