#1029 Add koji_tag into resolved buildrequires
Merged a year ago by jkaluza. Opened a year ago by cqi.
cqi/fm-orchestrator resolve_koji_tag  into  master

@@ -200,7 +200,8 @@ 

                          'ref': None,

                          'stream': local_build.stream,

                          'version': local_build.version,

-                         'context': local_build.context

+                         'context': local_build.context,

+                         'koji_tag': local_build.koji_tag,

                      }

                      continue

  

@@ -233,7 +234,8 @@ 

                      'ref': commit_hash,

                      'stream': module_stream,

                      'version': build.version,

-                     'context': build.context

+                     'context': build.context,

+                     'koji_tag': build.koji_tag,

                  }

  

          return new_requires

@@ -309,6 +309,7 @@ 

                      'stream': local_build.stream,

                      'version': local_build.version,

                      'context': local_build.context,

+                     'koji_tag': local_build.koji_tag,

                      # No need to set filtered_rpms for local builds, because MBS

                      # filters the RPMs automatically when the module build is

                      # done.

@@ -350,6 +351,7 @@ 

                      'stream': module_stream,

                      'version': str(version),

                      'context': module["context"],

+                     'koji_tag': module['koji_tag'],

                      'filtered_rpms': filtered_rpms,

                  }

              else:

@@ -129,7 +129,9 @@ 

          assert result == {

              'testmodule': {

                  'stream': 'master', 'version': '20170109091357', 'context': u'78e4a6fd',

-                 'ref': 'ff1ea79fc952143efeed1851aa0aa006559239ba'}}

+                 'ref': 'ff1ea79fc952143efeed1851aa0aa006559239ba',

+                 'koji_tag': 'module-testmodule-master-20170109091357-78e4a6fd'

+             }}

  

      def test_resolve_profiles(self):

          """

This is useful for an issue I'm working on, for which I need to get
platform module's koji_tag.

Signed-off-by: Chenxiong Qi cqi@redhat.com

Looks harmless to me. :+1:

Pull-Request has been merged by jkaluza

a year ago