Hello community, here is the log from the commit of package lutris for openSUSE:Factory checked in at 2019-04-11 08:48:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lutris (Old) and /work/SRC/openSUSE:Factory/.lutris.new.27019 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lutris" Thu Apr 11 08:48:13 2019 rev:6 rq:692783 version:0.5.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/lutris/lutris.changes 2019-04-09 20:18:54.625860794 +0200 +++ /work/SRC/openSUSE:Factory/.lutris.new.27019/lutris.changes 2019-04-11 08:48:15.528558144 +0200 @@ -1,0 +2,9 @@ +Wed Apr 10 06:39:34 UTC 2019 - [email protected] + +- Update to 0.5.2.1: + * Handle distributions where ldconfig is not in $PATH, like Debian + * Fix a crash when GOG credential have changed + * Leave "Show logs" button always enabled + * Add BlastEm to libretro cores + +------------------------------------------------------------------- Old: ---- lutris_0.5.2.tar.xz New: ---- lutris_0.5.2.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lutris.spec ++++++ --- /var/tmp/diff_new_pack.ax87LE/_old 2019-04-11 08:48:16.536559183 +0200 +++ /var/tmp/diff_new_pack.ax87LE/_new 2019-04-11 08:48:16.548559195 +0200 @@ -18,7 +18,7 @@ %global appid net.lutris.Lutris Name: lutris -Version: 0.5.2 +Version: 0.5.2.1 Release: 0 Summary: Manager for game installation and execution License: GPL-3.0-or-later ++++++ lutris_0.5.2.tar.xz -> lutris_0.5.2.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/debian/changelog new/lutris/debian/changelog --- old/lutris/debian/changelog 2019-04-04 11:47:30.000000000 +0200 +++ new/lutris/debian/changelog 2019-04-10 04:46:02.000000000 +0200 @@ -1,3 +1,12 @@ +lutris (0.5.2.1) cosmic; urgency=high + + * Handle distributions where ldconfig is not in $PATH, like Debian + * Fix a crash when GOG credential have changed + * Leave "Show logs" button always enabled + * Add BlastEm to libretro cores + + -- Mathieu Comandon <[email protected]> Tue, 09 Apr 2019 19:46:02 -0700 + lutris (0.5.2) cosmic; urgency=medium * Avoid a crash if the lutris config file is corrupted diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/debian/control new/lutris/debian/control --- old/lutris/debian/control 2019-03-25 07:17:30.000000000 +0100 +++ new/lutris/debian/control 2019-04-09 00:50:52.000000000 +0200 @@ -14,7 +14,8 @@ gir1.2-gnomedesktop-3.0, gir1.2-webkit2-4.0, gir1.2-notify-0.7, - libgirepository1.0-dev + libgirepository1.0-dev, + libc-bin Maintainer: Mathieu Comandon <[email protected]> Standards-Version: 3.9.5 Vcs-Git: https://github.com/lutris/lutris @@ -41,7 +42,8 @@ fluid-soundfont-gs, x11-xserver-utils, mesa-utils, - gvfs-backends + gvfs-backends, + libc-bin Recommends: python3-evdev, libc6-i386 [amd64], lib32gcc1 [amd64] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/lutris/__init__.py new/lutris/lutris/__init__.py --- old/lutris/lutris/__init__.py 2019-04-04 11:47:30.000000000 +0200 +++ new/lutris/lutris/__init__.py 2019-04-10 04:44:41.000000000 +0200 @@ -1,3 +1,3 @@ """Main Lutris package""" -__version__ = "0.5.2" +__version__ = "0.5.2.1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/lutris/game_actions.py new/lutris/lutris/game_actions.py --- old/lutris/lutris/game_actions.py 2019-04-04 11:47:30.000000000 +0200 +++ new/lutris/lutris/game_actions.py 2019-04-10 03:29:06.000000000 +0200 @@ -145,12 +145,6 @@ "view": True } - def get_disabled_entries(self): - """Return a dictionary of actions that should be disabled for a game""" - return { - "show_logs": not self.is_game_running, - } - def on_game_run(self, *_args): """Launch a game""" self.application.launch(self.game) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/lutris/gui/lutriswindow.py new/lutris/lutris/gui/lutriswindow.py --- old/lutris/lutris/gui/lutriswindow.py 2019-04-04 11:47:30.000000000 +0200 +++ new/lutris/lutris/gui/lutriswindow.py 2019-04-10 02:40:20.000000000 +0200 @@ -306,6 +306,7 @@ """Callback to update the view on sync complete""" if errors: logger.error("Sync failed: %s", errors) + return added_games, removed_games = response for game_id in added_games: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/lutris/gui/views/game_panel.py new/lutris/lutris/gui/views/game_panel.py --- old/lutris/lutris/gui/views/game_panel.py 2019-03-27 19:05:51.000000000 +0100 +++ new/lutris/lutris/gui/views/game_panel.py 2019-04-10 03:32:10.000000000 +0200 @@ -105,7 +105,6 @@ def get_buttons(self): displayed = self.game_actions.get_displayed_entries() - disabled_entries = self.game_actions.get_disabled_entries() icon_map = { # "stop": "media-playback-stop-symbolic", # "play": "media-playback-start-symbolic", @@ -135,8 +134,6 @@ button.show() else: button.hide() - if disabled_entries.get(action_id): - button.set_sensitive(False) buttons[action_id] = button if self.game.runner_name and self.game.is_installed: @@ -202,13 +199,11 @@ self.buttons["play"].hide() self.buttons["play"].set_label("Play") self.buttons["play"].set_sensitive(True) - self.buttons["show_logs"].set_sensitive(True) def on_game_stop(self, widget, game_id=None): for child in self.get_children(): child.destroy() self.place_content() - self.buttons["show_logs"].set_sensitive(True) def on_close(self, _widget): self.emit("panel-closed") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/lutris/gui/views/menu.py new/lutris/lutris/gui/views/menu.py --- old/lutris/lutris/gui/views/menu.py 2019-04-04 11:47:30.000000000 +0200 +++ new/lutris/lutris/gui/views/menu.py 2019-04-10 03:32:25.000000000 +0200 @@ -69,11 +69,9 @@ game_actions.set_game(game=game) displayed = game_actions.get_displayed_entries() - disabled_entries = game_actions.get_disabled_entries() for menuitem in self.get_children(): if not isinstance(menuitem, Gtk.ImageMenuItem): continue menuitem.set_visible(displayed.get(menuitem.action_id, True)) - menuitem.set_sensitive(not disabled_entries.get(menuitem.action_id)) super().popup(None, None, None, None, event.button, event.time) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/lutris/runners/libretro.py new/lutris/lutris/runners/libretro.py --- old/lutris/lutris/runners/libretro.py 2019-02-04 22:07:30.000000000 +0100 +++ new/lutris/lutris/runners/libretro.py 2019-04-10 02:40:20.000000000 +0200 @@ -12,6 +12,7 @@ LIBRETRO_CORES = [ ("4do (3DO)", "4do", "3DO"), ("atari800 (Atari 800/5200)", "atari800", "Atari 800/5200"), + ("BlastEm (Sega Genesis)", "blastem", "Sega Genesis"), ("blueMSX (MSX/MSX2/MSX2+)", "bluemsx", "MSX/MSX2/MSX2+"), ("Caprice32 (Amstrad CPC)", "cap32", "Amstrad CPC"), ("ChaiLove", "chailove", "ChaiLove"), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/lutris/services/gog.py new/lutris/lutris/services/gog.py --- old/lutris/lutris/services/gog.py 2019-03-25 07:24:46.000000000 +0100 +++ new/lutris/lutris/services/gog.py 2019-04-10 03:20:05.000000000 +0200 @@ -96,7 +96,12 @@ params.update(extra_params) url = "https://auth.gog.com/token?" + urlencode(params) request = Request(url) - request.get() + try: + request.get() + except HTTPError as ex: + logger.error("Failed to get token, check your GOG credentials") + return + token = request.json with open(self.token_path, "w") as token_file: token_file.write(json.dumps(token)) @@ -140,6 +145,11 @@ if self.get_token_age() > 2600: self.request_token(refresh_token=token["refresh_token"]) token = self.load_token() + if not token: + logger.warning( + "Request to %s cancelled because the GOG token could not be acquired", url + ) + return headers = {"Authorization": "Bearer " + token["access_token"]} request = Request(url, headers=headers, cookies=self.load_cookies()) request.get() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/lutris/util/linux.py new/lutris/lutris/util/linux.py --- old/lutris/lutris/util/linux.py 2019-04-04 11:47:30.000000000 +0200 +++ new/lutris/lutris/util/linux.py 2019-04-10 02:56:18.000000000 +0200 @@ -267,11 +267,14 @@ if all([os.path.exists(path) for path in lib_paths]): yield lib_paths - @staticmethod - def get_ldconfig_libs(): + def get_ldconfig_libs(self): """Return a list of available libraries, as returned by `ldconfig -p`.""" + ldconfig = self.get("ldconfig") + if not ldconfig: + logger.error("Could not detect ldconfig on this system") + return [] try: - output = subprocess.check_output(["ldconfig", "-p"]).decode("utf-8").split("\n") + output = subprocess.check_output([ldconfig, "-p"]).decode("utf-8").split("\n") except subprocess.CalledProcessError as ex: logger.error("Failed to get libraries from ldconfig: %s", ex) return [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lutris/lutris.spec new/lutris/lutris.spec --- old/lutris/lutris.spec 2019-04-04 11:47:30.000000000 +0200 +++ new/lutris/lutris.spec 2019-04-10 04:44:56.000000000 +0200 @@ -6,7 +6,7 @@ %global appid net.lutris.Lutris Name: lutris -Version: 0.5.2 +Version: 0.5.2.1 Release: 7%{?dist} Summary: Install and play any video game easily
