diff --git a/lorax.spec b/lorax.spec index 8aed7b3a..a63b4fbe 100644 --- a/lorax.spec +++ b/lorax.spec @@ -42,7 +42,7 @@ Requires: dracut >= 030 Requires: libselinux-python3 Requires: python3-mako Requires: python3-kickstart -Requires: python3-dnf +Requires: python3-dnf >= 1.1.7 %if 0%{?fedora} diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 09b4aff5..80e41a0d 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -61,7 +61,7 @@ class ArchData(DataHolder): def __init__(self, buildarch): super(ArchData, self).__init__() self.buildarch = buildarch - self.basearch = dnf.arch.basearch(buildarch) + self.basearch = dnf.rpm.basearch(buildarch) self.libdir = "lib64" if self.basearch in self.lib64_arches else "lib" self.bcj = self.bcj_arch.get(self.basearch)