Commit 7fdcc7b6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: show srpm version in gita ls for copy/rebuild subtasks

parent 957bd43a
......@@ -313,6 +313,15 @@ for i, t in enumerate(tasks):
pkgs.append("(delete {})".format(pkg))
elif pkg and tag:
pkgs.append("{}.git={}".format(pkg, tag))
elif stype == "srpm":
srpm = st.get("srpm", "").removesuffix(".src.rpm")
if pkg and srpm.startswith(pkg + "-"):
ver = srpm[len(pkg) + 1:]
pkgs.append("{}={}".format(pkg, ver))
elif srpm:
pkgs.append(srpm)
elif pkg:
pkgs.append(pkg)
elif pkg:
pkgs.append(pkg)
tid = str(t["id"])
......
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