Blame SOURCES/dnf-plugin-spacewalk-2.8.5-10-el8-to-dnf-plugin-spacewalk-2.8.5-11-el8.patch

e77f05
diff --git a/dnf-plugin-spacewalk.spec b/dnf-plugin-spacewalk.spec
e77f05
index d2c31fa..ae9fecb 100644
e77f05
--- a/dnf-plugin-spacewalk.spec
e77f05
+++ b/dnf-plugin-spacewalk.spec
e77f05
@@ -12,7 +12,7 @@
e77f05
 Summary: DNF plugin for Spacewalk
e77f05
 Name: dnf-plugin-spacewalk
e77f05
 Version: 2.8.5
e77f05
-Release: 10%{?dist}
e77f05
+Release: 11%{?dist}
e77f05
 License: GPLv2
e77f05
 Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz
e77f05
 URL:     https://github.com/spacewalkproject/spacewalk
e77f05
@@ -113,6 +113,9 @@ install -m 644 actions/errata.py %{buildroot}%{python3_sitelib}/rhn/actions/
e77f05
 %endif
e77f05
 
e77f05
 %changelog
e77f05
+* Wed Jun 19 2019 Michael Mraka <michael.mraka@redhat.com> 2.8.5-11
e77f05
+- Resolves: #1701222 - ignore broken json cache
e77f05
+
e77f05
 * Wed Apr 03 2019 Michael Mraka <michael.mraka@redhat.com> 2.8.5-10
e77f05
 - Resolves: #1673445 - changed wording to refer to Red Hat Satellite
e77f05
 
e77f05
diff --git a/spacewalk.py b/spacewalk.py
e77f05
index 89e7822..1e5255f 100644
e77f05
--- a/spacewalk.py
e77f05
+++ b/spacewalk.py
e77f05
@@ -186,6 +186,9 @@ class Spacewalk(dnf.Plugin):
e77f05
         except (FileNotFoundError, IOError) as e:
e77f05
             if e.errno != errno.ENOENT:
e77f05
                 raise
e77f05
+        except json.decoder.JSONDecodeError as e:
e77f05
+            pass        # ignore broken json and recreate it later
e77f05
+
e77f05
         return {}
e77f05
 
e77f05
     def _write_channels_file(self, var):