#1121814 option to output source package name with/without version

Package:
dctrl-tools
Source:
dctrl-tools
Description:
Command-line tools to process Debian package information
Submitter:
Simon Richter
Date:
2025-12-03 06:25:02 UTC
Severity:
normal
#1121814#5
Date:
2025-12-03 06:22:00 UTC
From:
To:
Hi,

I'm trying to build a list of source packages with versions, so I need
to fold the Version tag in as well:

    Package: p1
    Version: 1+b1
    Source: s1 (1)

    Package: p2
    Version: 1
    Source: s2

    Package: p3
    Version: 1

should become:

    Source: s1 (1)
    Source: s2 (1)
    Source: p3 (1)

likewise, -nsSource:Package outputs

    s1 (1)
    s2
    p3

so for the case I don't need the source version, it would be cool if
there was also an easy way to omit it.

   Simon