#1192 Set the module_platform_id in the yum.conf
Merged 5 years ago by mprahl. Opened 5 years ago by jkaluza.
jkaluza/fm-orchestrator offline-builds-2  into  offline-builds

file modified
+1
@@ -12,6 +12,7 @@ 

  install_weak_deps=0

  metadata_expire=3600

  mdpolicy=group:primary

+ module_platform_id=$module_platform_id

  

  # repos

  

@@ -339,6 +339,10 @@ 

                  if len(mmds) == 1 and mmds[0].get_name() in conf.base_module_names:

                      for repofile in conf.base_module_repofiles:

                          self._add_repo_from_path(repofile)

+                     # Also set the platform_id.

+                     mmd = mmds[0]

+                     self.yum_conf = self.yum_conf.replace(

+                         "$module_platform_id", "%s:%s" % (mmd.get_name(), mmd.get_stream()))

                  else:

                      # Add repositories defined in repofile to mock config.

                      repofile = source[len("repofile://"):]

no initial comment

Pull-Request has been merged by mprahl

5 years ago