#293 odcs_test_deployment: Use py3 and list all the RPMs included in resulting compose.
Merged 4 years ago by lsedlar. Opened 4 years ago by jkaluza.
jkaluza/odcs group-rmtree-errors  into  master

@@ -1,4 +1,4 @@ 

- #!/usr/bin/env python

+ #!/usr/bin/env python3

  

  from __future__ import print_function

  
@@ -11,6 +11,7 @@ 

  import shutil

  import tempfile

  import openidc_client

+ import hawkey

  from datetime import datetime, timedelta

  

  
@@ -81,7 +82,7 @@ 

          base.fill_sack(load_system_repo=False)

  

          # Return available packages.

-         return [x.name for x in base.sack.query().available()]

+         return [x.name for x in base.sack.query(flags=hawkey.IGNORE_EXCLUDES).available()]

  

  

  def check_compose(compose, source_type, source, packages, flags, arches=None):

With recent DNF changes, the modular RPMs were ignored by the DNF API we used.
The tests checking the RPMs in the composes containing modules therefore failed.

This commit fixes it by hawkey.IGNORE_EXCLUDES flag. This has been discussed
with DNF team and they advised to use this flag.

Pull-Request has been merged by lsedlar

4 years ago