|
|
051232 |
diff --git a/dnf-plugin-spacewalk.spec b/dnf-plugin-spacewalk.spec
|
|
|
051232 |
index e20e59f..24a5b5d 100644
|
|
|
051232 |
--- a/dnf-plugin-spacewalk.spec
|
|
|
051232 |
+++ b/dnf-plugin-spacewalk.spec
|
|
|
051232 |
@@ -12,7 +12,7 @@
|
|
|
051232 |
Summary: DNF plugin for Spacewalk
|
|
|
051232 |
Name: dnf-plugin-spacewalk
|
|
|
051232 |
Version: 2.8.5
|
|
|
051232 |
-Release: 7%{?dist}
|
|
|
051232 |
+Release: 8%{?dist}
|
|
|
051232 |
License: GPLv2
|
|
|
051232 |
Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz
|
|
|
051232 |
URL: https://github.com/spacewalkproject/spacewalk
|
|
|
051232 |
@@ -24,9 +24,11 @@ Requires: dnf-plugins-core
|
|
|
051232 |
Requires: librepo >= 1.7.15
|
|
|
051232 |
%if 0%{?fedora}
|
|
|
051232 |
Obsoletes: yum-rhn-plugin < 2.7
|
|
|
051232 |
+Requires: dnf >= 4.0.9
|
|
|
051232 |
%endif
|
|
|
051232 |
%if 0%{?rhel} >= 8
|
|
|
051232 |
Provides: yum-rhn-plugin = %{version}
|
|
|
051232 |
+Requires: dnf >= 4.0.9
|
|
|
051232 |
%endif
|
|
|
051232 |
|
|
|
051232 |
%description
|
|
|
051232 |
@@ -111,6 +113,9 @@ install -m 644 actions/errata.py %{buildroot}%{python3_sitelib}/rhn/actions/
|
|
|
051232 |
%endif
|
|
|
051232 |
|
|
|
051232 |
%changelog
|
|
|
051232 |
+* Mon Dec 10 2018 Michael Mraka <michael.mraka@redhat.com> 2.8.5-8
|
|
|
051232 |
+- Resolves: #1637980 - use new api for http headers (michael.mraka@redhat.com)
|
|
|
051232 |
+
|
|
|
051232 |
* Wed Oct 31 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-7
|
|
|
051232 |
- Resolves: rhbz#1633298 - librepo dependency is not added automatically (michael.mraka@redhat.com)
|
|
|
051232 |
|
|
|
051232 |
diff --git a/spacewalk.py b/spacewalk.py
|
|
|
051232 |
index e0b418b..61bc5d8 100644
|
|
|
051232 |
--- a/spacewalk.py
|
|
|
051232 |
+++ b/spacewalk.py
|
|
|
051232 |
@@ -242,11 +242,11 @@ class SpacewalkRepo(dnf.repo.Repo):
|
|
|
051232 |
else:
|
|
|
051232 |
self.disable()
|
|
|
051232 |
|
|
|
051232 |
- if hasattr(self, '_repo'):
|
|
|
051232 |
- # dnf > 3.6.0
|
|
|
051232 |
+ if hasattr(self, 'set_http_headers'):
|
|
|
051232 |
+ # dnf > 4.0.9 on RHEL 8, Fedora 29/30
|
|
|
051232 |
http_headers = self.create_http_headers()
|
|
|
051232 |
if http_headers:
|
|
|
051232 |
- self._repo.setHttpHeaders(http_headers)
|
|
|
051232 |
+ self.set_http_headers(http_headers)
|
|
|
051232 |
|
|
|
051232 |
def create_http_headers(self):
|
|
|
051232 |
http_headers = []
|