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:
parent
d9ae3bbf99
commit
9655e4d5a5
@ -46,7 +46,7 @@ Requires: kpartx
|
|||||||
Requires: libselinux-python3
|
Requires: libselinux-python3
|
||||||
Requires: python3-mako
|
Requires: python3-mako
|
||||||
Requires: python3-kickstart
|
Requires: python3-kickstart
|
||||||
Requires: python3-dnf >= 1.1.0
|
Requires: python3-dnf >= 1.1.7
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
|
@ -62,7 +62,7 @@ class ArchData(DataHolder):
|
|||||||
def __init__(self, buildarch):
|
def __init__(self, buildarch):
|
||||||
super(ArchData, self).__init__()
|
super(ArchData, self).__init__()
|
||||||
self.buildarch = buildarch
|
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.libdir = "lib64" if self.basearch in self.lib64_arches else "lib"
|
||||||
self.bcj = self.bcj_arch.get(self.basearch)
|
self.bcj = self.bcj_arch.get(self.basearch)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user