Hello community, here is the log from the commit of package mate-menu for openSUSE:Factory checked in at 2016-02-01 19:56:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mate-menu (Old) and /work/SRC/openSUSE:Factory/.mate-menu.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "mate-menu" Changes: -------- --- /work/SRC/openSUSE:Factory/mate-menu/mate-menu.changes 2016-01-22 01:09:29.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.mate-menu.new/mate-menu.changes 2016-02-01 19:56:35.000000000 +0100 @@ -1,0 +2,7 @@ +Thu Jan 28 22:40:00 UTC 2016 - sor.alexei@meowr.ru + +- Update to 5.6.8: + * Fix a crash. +- Remove 0001-fix-path-find.patch: merged upstream. + +------------------------------------------------------------------- Old: ---- 0001-fix-path-find.patch mate-menu-5.6.7.tar.gz New: ---- mate-menu-5.6.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mate-menu.spec ++++++ --- /var/tmp/diff_new_pack.bncceK/_old 2016-02-01 19:56:36.000000000 +0100 +++ /var/tmp/diff_new_pack.bncceK/_new 2016-02-01 19:56:36.000000000 +0100 @@ -17,21 +17,19 @@ %define _name mate_menu -%define _rev cb3ee3ec1f8e +%define _rev dc317ce199de Name: mate-menu -Version: 5.6.7 +Version: 5.6.8 Release: 0 Summary: Advanced MATE menu License: GPL-2.0+ Group: System/GUI/Other Url: https://bitbucket.org/ubuntu-mate/mate-menu Source: https://bitbucket.org/ubuntu-mate/%{name}/get/%{version}.tar.gz#/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM 0001-fix-path-find.patch sor.alexei@meowr.ru -Patch0: 0001-fix-path-find.patch # PATCH-FIX-OPENSUSE 0002-xterm-no-symlink-dep.patch sor.alexei@meowr.ru -- Remove dependency on x-terminal-emulator Debian's symlink. -Patch1: 0002-xterm-no-symlink-dep.patch +Patch0: 0002-xterm-no-symlink-dep.patch # PATCH-FEATURE-OPENSUSE 0002-yast2-software.patch sor.alexei@meowr.ru -- Use YaST2 and GNOME PackageKit package managers. -Patch2: 0002-yast2-software.patch +Patch1: 0002-yast2-software.patch BuildRequires: gobject-introspection-devel BuildRequires: intltool BuildRequires: python >= 2.4 @@ -69,7 +67,6 @@ %setup -q -n ubuntu-mate-%{name}-%{_rev} %patch0 -p1 %patch1 -p1 -%patch2 -p1 sed -i 's/su-to-root/xdg-su/g' %{_name}/execute.py %build ++++++ mate-menu-5.6.7.tar.gz -> mate-menu-5.6.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ubuntu-mate-mate-menu-cb3ee3ec1f8e/lib/mate-menu.py new/ubuntu-mate-mate-menu-dc317ce199de/lib/mate-menu.py --- old/ubuntu-mate-mate-menu-cb3ee3ec1f8e/lib/mate-menu.py 2016-01-18 14:59:19.000000000 +0100 +++ new/ubuntu-mate-mate-menu-dc317ce199de/lib/mate-menu.py 2016-01-28 23:40:04.000000000 +0100 @@ -19,7 +19,7 @@ # Free Software Foundation, Inc., # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. -__VERSION__='5.6.7' +__VERSION__='5.6.8' import ctypes import gc @@ -73,19 +73,6 @@ from mate_menu.execute import * -def find_on_path(self, command): - """Is command on the executable search path?""" - if 'PATH' not in os.environ: - return False - path = os.environ['PATH'] - for element in path.split(os.pathsep): - if not element: - continue - filename = os.path.join(element, command) - if os.path.isfile(filename) and os.access(filename, os.X_OK): - return True - return False - class MainWindow( object ): """This is the main class for the application""" @@ -576,12 +563,14 @@ def createPanelButton( self ): self.button_icon = Gtk.Image.new_from_file( self.buttonIcon ) self.systemlabel = Gtk.Label(label= "%s " % self.buttonText ) - if find_on_path('lsb_release'): + try: process = subprocess.Popen(['lsb_release', '-d'], stdout=subprocess.PIPE) out, err = process.communicate() tooltip = out.replace('Description:', '').strip() self.systemlabel.set_tooltip_text(tooltip) self.button_icon.set_tooltip_text(tooltip) + except OSError: + pass if self.applet.get_orient() == MatePanelApplet.AppletOrient.UP or self.applet.get_orient() == MatePanelApplet.AppletOrient.DOWN: self.button_box = Gtk.HBox()