| |
@@ -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 discussedwith DNF team and they advised to use this flag.