Move import of modulemd to a separate module
This should make it possible to only import the library only when it's really needed. DNF does not work with libmodulemd v2. If we import libmodulemd2 and then dnf, the program will just hang forever. We only need DNF in pungi-gather, where libmodulemd is not needed, and also where we do need libmodulemd, we don't have DNF. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
f822ee324a
commit
8ab7d9f7ba
15 changed files with 91 additions and 82 deletions
|
|
@ -8,7 +8,7 @@ import mock
|
|||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi import Modulemd
|
||||
from pungi.module_util import Modulemd
|
||||
from pungi.phases.pkgset import common
|
||||
from tests import helpers
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue