#2692 adding check for the license header key
Merged a year ago by tkopecek. Opened a year ago by lrossett.

file modified
+2 -1
@@ -3177,7 +3177,8 @@ 

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

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


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

+             if 'license' in headers:

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

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

          if info['buildroot_id'] is None:

              print("No buildroot data available")

fixes #2628


  • Added a "license" key check before printing the license value

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

a year ago

Commit eb638ed fixes this pull-request

Pull-Request has been merged by tkopecek

a year ago

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

a year ago