Commit 957bd43a authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: show srpm/copy subtask names in gita show

_format_task_subtasks did not handle type=srpm, falling through to the repo handler which uses dir/tag_name (empty for srpm). Now shows srpm name and rebuild_from repository.
parent 7a1cd2da
......@@ -383,6 +383,10 @@ for num in sorted(task.get("subtasks", {}).keys(), key=int):
elif stype == "copy":
copy_from = st.get("copy_repo", "")
line = " {}: copy {} from {}".format(num, pkg, copy_from)
elif stype == "srpm":
srpm = st.get("srpm", "")
copy_from = st.get("rebuild_from", "")
line = " {}: {} from {}".format(num, srpm or pkg, copy_from) if copy_from else " {}: {}".format(num, srpm or pkg)
else:
tag = st.get("tag_name", "")
author = st.get("tag_author", "")
......
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