From 8085395678d5603acafc2a2c30e42f370da020ba Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 9 Mar 2016 14:45:20 -0800 Subject: [PATCH] Change location of basearch to dnf.rpm.basearch (#1312087) The dnf fix for the busted API change is also busted, so just change it everywhere. --- lorax.spec | 2 +- src/pylorax/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)