#948 cli: don't show license for external RPM in rpminfo
Merged 4 years ago by mikem. Opened 4 years ago by julian8628.
julian8628/koji rpminfo-ext  into  master

file modified
+3 -2
@@ -3024,9 +3024,10 @@ 

              print("Built: %s" % time.strftime('%a, %d %b %Y %H:%M:%S %Z', time.localtime(info['buildtime'])))

          print("SIGMD5: %(payloadhash)s" % info)

          print("Size: %(size)s" % info)

-         headers = session.getRPMHeaders(rpmID=info['id'], headers=["license"])

-         print("License: %(license)s" % headers)

          if not info.get('external_repo_id', 0):

+             headers = session.getRPMHeaders(rpmID=info['id'],

+                                             headers=["license"])

+             print("License: %(license)s" % headers)

              print("Build ID: %(build_id)s" % info)

          if info['buildroot_id'] is None:

              print("No buildroot data available")

Commit 1930a11 fixes this pull-request

Pull-Request has been merged by mikem

4 years ago