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

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