diff --git a/lorax.spec b/lorax.spec index d746fe8b..c842c114 100644 --- a/lorax.spec +++ b/lorax.spec @@ -46,7 +46,7 @@ Requires: kpartx Requires: libselinux-python3 Requires: python3-mako Requires: python3-kickstart -Requires: python3-dnf >= 1.1.0 +Requires: python3-dnf >= 1.1.7 %if 0%{?fedora} diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index a30eba30..aafd0c95 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -62,7 +62,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)