From 7ba00f9e46f918e6cef6273210a762db5ddfcc92 Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 1 Apr 2020 08:54:12 +0200 Subject: [PATCH] lutris: update to 0.5.5 --- .../patches/sort_new_with_model_fix.patch | 26 ------------------- srcpkgs/lutris/template | 6 ++--- 2 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 srcpkgs/lutris/patches/sort_new_with_model_fix.patch diff --git a/srcpkgs/lutris/patches/sort_new_with_model_fix.patch b/srcpkgs/lutris/patches/sort_new_with_model_fix.patch deleted file mode 100644 index 80b840567778f6..00000000000000 --- a/srcpkgs/lutris/patches/sort_new_with_model_fix.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 12a458db3c590c3f1972594e091a24cb4d65b610 Mon Sep 17 00:00:00 2001 -From: Mathieu Comandon -Date: Wed, 1 Jan 2020 12:47:55 -0800 -Subject: [PATCH] Support both sort_new_with_model and new_with_model - ---- - lutris/gui/views/store.py | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/lutris/gui/views/store.py b/lutris/gui/views/store.py -index 9e843e9e4..8fe5decf5 100644 ---- lutris/gui/views/store.py -+++ lutris/gui/views/store.py -@@ -140,7 +140,11 @@ def __init__( - self.prevent_sort_update = False # prevent recursion with signals - self.modelfilter = self.store.filter_new() - self.modelfilter.set_visible_func(self.filter_view) -- self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter) -+ try: -+ self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter) -+ except AttributeError: -+ # Apparently some API breaking changes on GTK minor versions. -+ self.modelsort = Gtk.TreeModelSort.new_with_model(self.modelfilter) - self.modelsort.connect("sort-column-changed", self.on_sort_column_changed) - self.modelsort.set_sort_func(sort_col, sort_func, sort_col) - self.sort_view(sort_key, sort_ascending) diff --git a/srcpkgs/lutris/template b/srcpkgs/lutris/template index 2c5aa75791252e..7f7373a8be39ac 100644 --- a/srcpkgs/lutris/template +++ b/srcpkgs/lutris/template @@ -1,7 +1,7 @@ # Template file for 'lutris' pkgname=lutris -version=0.5.4 -revision=3 +version=0.5.5 +revision=1 archs=noarch build_style=python3-module build_helper="gir" @@ -14,4 +14,4 @@ license="GPL-3.0-or-later" homepage="https://lutris.net" changelog="https://raw.githubusercontent.com/lutris/lutris/master/debian/changelog" distfiles="https://github.com/lutris/lutris/archive/v${version}.tar.gz" -checksum=244a2cc0c17ff2e25a5ebad5ae6e90f467e59b6dd01f772f6b1fd2df15163b98 +checksum=b59e5d9c0d7ad8b401368863dc269cba611dc66d215b50a82972160facf243f4