Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-atspi for openSUSE:Factory checked in at 2021-03-21 23:19:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-atspi (Old) and /work/SRC/openSUSE:Factory/.python-atspi.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-atspi" Sun Mar 21 23:19:53 2021 rev:65 rq:880097 version:2.38.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-atspi/python-atspi.changes 2020-12-23 14:20:34.593686505 +0100 +++ /work/SRC/openSUSE:Factory/.python-atspi.new.2401/python-atspi.changes 2021-03-21 23:20:01.148732013 +0100 @@ -1,0 +2,7 @@ +Thu Mar 18 09:17:02 UTC 2021 - Dominique Leuenberger <[email protected]> + +- Update to version 2.38.1: + + Add sanity checks to getPath and findAncestor so that we don't + hang if an accessible returns itself as its own parent. + +------------------------------------------------------------------- Old: ---- pyatspi-2.38.0.tar.xz New: ---- pyatspi-2.38.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-atspi.spec ++++++ --- /var/tmp/diff_new_pack.MhEwRS/_old 2021-03-21 23:20:01.608732171 +0100 +++ /var/tmp/diff_new_pack.MhEwRS/_new 2021-03-21 23:20:01.612732172 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-atspi # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,11 +30,10 @@ BuildArch: noarch %endif - %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define _name pyatspi Name: python-atspi%{psuffix} -Version: 2.38.0 +Version: 2.38.1 Release: 0 Summary: Python bindings for the Assistive Technology Service Provider Interface License: LGPL-2.0-only @@ -99,7 +98,6 @@ popd } - %install %if ! %{with test} %{python_expand pushd build_%{$python_bin_suffix} ++++++ pyatspi-2.38.0.tar.xz -> pyatspi-2.38.1.tar.xz ++++++ ++++ 3149 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.38.0/NEWS new/pyatspi-2.38.1/NEWS --- old/pyatspi-2.38.0/NEWS 2020-08-09 00:29:15.000000000 +0200 +++ new/pyatspi-2.38.1/NEWS 2021-03-13 22:36:07.000000000 +0100 @@ -1,3 +1,8 @@ +What's new in pyatspi 2.38.1: + +* Add sanity checks to getPath and findAncestor so that we don't + hang if an accessible returns itself as its own parent (#6, #7). + What's new in pyatspi 2.37.90: * Tests: use libatspi's dbus-gmain implementation, eliminating diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.38.0/config/test-driver new/pyatspi-2.38.1/config/test-driver --- old/pyatspi-2.38.0/config/test-driver 2020-09-12 21:25:56.000000000 +0200 +++ new/pyatspi-2.38.1/config/test-driver 2021-03-13 22:36:27.000000000 +0100 @@ -42,11 +42,13 @@ { cat <<END Usage: - test-driver --test-name=NAME --log-file=PATH --trs-file=PATH - [--expect-failure={yes|no}] [--color-tests={yes|no}] - [--enable-hard-errors={yes|no}] [--] + test-driver --test-name NAME --log-file PATH --trs-file PATH + [--expect-failure {yes|no}] [--color-tests {yes|no}] + [--enable-hard-errors {yes|no}] [--] TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] + The '--test-name', '--log-file' and '--trs-file' options are mandatory. +See the GNU Automake documentation for information. END } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.38.0/configure.ac new/pyatspi-2.38.1/configure.ac --- old/pyatspi-2.38.0/configure.ac 2020-09-12 21:25:40.000000000 +0200 +++ new/pyatspi-2.38.1/configure.ac 2021-03-13 22:36:16.000000000 +0100 @@ -1,4 +1,4 @@ -AC_INIT([pyatspi], [2.38.0], [[email protected]]) +AC_INIT([pyatspi], [2.38.1], [[email protected]]) AC_CONFIG_AUX_DIR(config) # The version of python used is determined by the executable pointed to by the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.38.0/pyatspi/utils.py new/pyatspi-2.38.1/pyatspi/utils.py --- old/pyatspi-2.38.0/pyatspi/utils.py 2018-08-09 17:07:43.000000000 +0200 +++ new/pyatspi-2.38.1/pyatspi/utils.py 2021-03-11 00:37:08.000000000 +0100 @@ -296,7 +296,8 @@ if acc is None: # guard against bad start condition return None - while 1: + tries = 0 + while tries < 100: if acc.parent is None: # stop if there is no parent and we haven't returned yet return None @@ -306,6 +307,8 @@ pass # move to the parent acc = acc.parent + tries = tries + 1 + return None def getPath(acc): """ @@ -319,7 +322,8 @@ @raise LookupError: When the application accessible cannot be reached """ path = [] - while 1: + tries = 0 + while tries < 100: if acc.parent is None: path.reverse() return path @@ -328,6 +332,8 @@ except Exception: raise LookupError acc = acc.parent + tries = tries + 1 + raise LookupError def pointToList(point): return (point.x, point.y)
