diff --git a/pyxdg-0.26-fix-OnlyShowIn.patch b/pyxdg-0.26-fix-OnlyShowIn.patch new file mode 100644 index 0000000..e731e34 --- /dev/null +++ b/pyxdg-0.26-fix-OnlyShowIn.patch @@ -0,0 +1,18 @@ +diff -up pyxdg-0.26/xdg/Menu.py.fixOnlyShowIn pyxdg-0.26/xdg/Menu.py +--- pyxdg-0.26/xdg/Menu.py.fixOnlyShowIn 2018-11-01 11:34:26.222123436 -0400 ++++ pyxdg-0.26/xdg/Menu.py 2018-11-01 11:36:39.459203908 -0400 +@@ -298,11 +298,11 @@ class Menu: + entry.Show = NO_EXEC + self.Visible -= 1 + elif xdg.Config.windowmanager: +- if (entry.DesktopEntry.OnlyShowIn != [] and ( +- xdg.Config.windowmanager not in entry.DesktopEntry.OnlyShowIn ++ if (entry.DesktopEntry.getOnlyShowIn() != [] and ( ++ xdg.Config.windowmanager not in entry.DesktopEntry.getOnlyShowIn() + ) + ) or ( +- xdg.Config.windowmanager in entry.DesktopEntry.NotShowIn ++ xdg.Config.windowmanager in entry.DesktopEntry.getNotShowIn() + ): + entry.Show = NOT_SHOW_IN + self.Visible -= 1 diff --git a/pyxdg.spec b/pyxdg.spec index 5629957..542b19f 100644 --- a/pyxdg.spec +++ b/pyxdg.spec @@ -2,12 +2,13 @@ Name: pyxdg Version: 0.26 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python library to access freedesktop.org standards Group: Development/Libraries License: LGPLv2 URL: http://freedesktop.org/Software/pyxdg Source0: https://pypi.python.org/packages/source/r/PyXDG/%{name}-%{version}.tar.gz +Patch0: pyxdg-0.26-fix-OnlyShowIn.patch BuildArch: noarch # These are needed for the nose tests. BuildRequires: hicolor-icon-theme @@ -46,6 +47,7 @@ package contains a Python 3 version of PyXDG. %prep %setup -q +%patch0 -p1 -b .fixOnlyShowIn %build %py2_build @@ -85,6 +87,9 @@ nosetests-%{python3_version} || : %endif #with_python3 %changelog +* Thu Nov 1 2018 Tom Callaway - 0.26-2 +- fix OnlyShowIn (bz 1624651) + * Mon Jul 23 2018 Tom Callaway - 0.26-1 - update to 0.26