#1724 don't expect all buildReferences fields (koji-gc)
Merged 4 years ago by tkopecek. Opened 4 years ago by tkopecek.
tkopecek/koji issue1723  into  master

file modified
+4 -4
@@ -446,21 +446,21 @@ 

              continue

          #XXX - this is more data than we need

          #      also, this call takes waaaay longer than it should

-         if refs['tags']:

+         if refs.get('tags'):

              # must have been tagged just now

              print("[%i/%i] Build is tagged [?]: %s" % (i, N, nvr))

              continue

-         if refs['rpms']:

+         if refs.get('rpms'):

              if options.debug:

                  print("[%i/%i] Build has %i rpm references: %s" % (i, N, len(refs['rpms']), nvr))

                  #pprint.pprint(refs['rpms'])

              continue

-         if refs['archives']:

+         if refs.get('archives'):

              if options.debug:

                  print("[%i/%i] Build has %i archive references: %s" % (i, N, len(refs['archives']), nvr))

                  #pprint.pprint(refs['archives'])

              continue

-         if refs['component_of']:

+         if refs.get('component_of'):

              if options.debug:

                  print("[%i/%i] Build is a component of archives: %s" % (i, N, nvr))

              continue

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

4 years ago

Commit b1260bf fixes this pull-request

Pull-Request has been merged by tkopecek

4 years ago

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

4 years ago