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 8085395678)
This commit is contained in:
Brian C. Lane 2016-03-09 14:45:20 -08:00
parent 4056a5cc84
commit d12fc22673
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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)