From d12fc2267331c8d5549ea8ec6b7201ccb9371bee 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. (cherry picked from commit 8085395678d5603acafc2a2c30e42f370da020ba) --- lorax.spec | 2 +- src/pylorax/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)