| |
@@ -4759,8 +4759,13 @@
|
| |
for tag in args:
|
| |
info = session.getTag(tag, **event_opts)
|
| |
if info is None:
|
| |
- print("No such tag: %s" % tag)
|
| |
- sys.exit(1)
|
| |
+ try:
|
| |
+ info = session.getTag(int(tag), **event_opts)
|
| |
+ except ValueError:
|
| |
+ info = None
|
| |
+ if info is None:
|
| |
+ print("No such tag: %s" % tag)
|
| |
+ sys.exit(1)
|
| |
tags.append(info)
|
| |
|
| |
for n, info in enumerate(tags):
|
| |
@@ -4814,7 +4819,7 @@
|
| |
for rinfo in external_repos:
|
| |
print(" %(priority)3i %(external_repo_name)s (%(url)s)" % rinfo)
|
| |
print("Inheritance:")
|
| |
- for parent in session.getInheritanceData(tag, **event_opts):
|
| |
+ for parent in session.getInheritanceData(info['id'], **event_opts):
|
| |
flags = ''
|
| |
for code,expr in (
|
| |
('M',parent['maxdepth'] is not None),
|
| |
It would be useful to be able to use the koji cli's taginfo with tag IDs and not just the tag name since the python library allows for this. Also there is a bug where Inheritance always uses the value of the last tag queried for.
Old behavior (ID bug):
Old behavior (Inheritance bug):
❯❯❯ koji taginfo rawhide f31 Tag: rawhide [197] Arches: aarch64 armv7hl i686 ppc64 ppc64le s390x x86_64 Groups: appliance-build, build, livecd-build, livemedia-build, srpm-build LOCKED Tag options: Inheritance: <<<<< inheritance missing/incorrect Tag: f31 [6438] Arches: None Groups: appliance-build, build, livecd-build, livemedia-build, srpm-build Required permission: 'autosign' Tag options: mock.new_chroot : 0 mock.package_manager : 'dnf' Inheritance:New behavior: