#2016 Add detail about known koji signatures to buildinfo
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue1980  into  master

file modified
+9 -2
@@ -3159,7 +3159,6 @@ 

              for archive in win_archives:

                  archives_seen.setdefault(archive['id'], 1)

                  print(os.path.join(koji.pathinfo.winbuild(info), koji.pathinfo.winfile(archive)))

-         rpms = session.listRPMs(buildID=info['id'])

          img_archives = session.listArchives(buildID=info['id'], type='image')

          if img_archives:

              print('Image archives:')
@@ -3176,10 +3175,18 @@ 

              print('%s Archives:' % btype.capitalize())

              for archive in archives:

                  print(os.path.join(koji.pathinfo.typedir(info, btype), archive['filename']))

+         rpms = session.listRPMs(buildID=info['id'])

          if rpms:

+             with session.multicall() as mc:

+                 for rpm in rpms:

+                     rpm['sigs'] = mc.queryRPMSigs(rpm['id'])

              print("RPMs:")

              for rpm in rpms:

-                 print(os.path.join(koji.pathinfo.build(info), koji.pathinfo.rpm(rpm)))

+                 l = os.path.join(koji.pathinfo.build(info), koji.pathinfo.rpm(rpm))

+                 keys = ', '.join(sorted([x['sigkey'] for x in rpm['sigs'].result if x['sigkey']]))

+                 if keys:

+                     l += '\tSignatures: %s' % keys

+                 print(l)

          if options.changelog:

              changelog = session.getChangelogEntries(info['id'])

              if changelog:

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

2 years ago

Commit 5b09f4d fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago