Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ranger for openSUSE:Factory checked in at 2022-06-25 10:24:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ranger (Old) and /work/SRC/openSUSE:Factory/.ranger.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ranger" Sat Jun 25 10:24:39 2022 rev:8 rq:984947 version:1.9.3+git20220615.7e2d1613 Changes: -------- --- /work/SRC/openSUSE:Factory/ranger/ranger.changes 2022-05-07 23:54:20.724912307 +0200 +++ /work/SRC/openSUSE:Factory/.ranger.new.1548/ranger.changes 2022-06-25 10:25:00.810738112 +0200 @@ -1,0 +2,34 @@ +Fri Jun 17 18:11:37 UTC 2022 - Scott Bradnick <scott.bradn...@suse.com> + +- Adding 'Recommends: python3-Pillow' + +------------------------------------------------------------------- +Fri Jun 17 16:32:21 UTC 2022 - scott.bradn...@suse.com + +- Update to version 1.9.3+git20220615.7e2d1613: + * browsercolumn: Only add the separator when needed + * GHActions: Refrain from installing PyLint for tests + * browsercolumn: Fix separator depth + * GHActions: Rerun PyLint when requirements.txt changes + * pylint: Pin to 2.13.9 + * browsercolumn: Use number of items for width + * browsercolumn: Take into account one_indexed setting + * browsercolumn: Lowercase line_numbers in key + * browsercolumn: Refactor linum_text_len + * browsercolumn: Fix relative line number width + * browsercolumn: Include linum_text_len in key + * browsercolumn: Remove off-by-one trailing space + * browsercolumn: Accept line_numbers case insensitively + * browsercolumn: Fix off-by-one in line number width + * Add viewnior in rifle config + +------------------------------------------------------------------- +Fri May 27 19:29:58 UTC 2022 - scott.bradn...@suse.com + +- Update to version 1.9.3+git20220526.aaf03225: + * test_py2_compat: Ignore error message positions + * runner: Initialize variables outside of try-except + * accumulator: Make get_list an abstract method + * colorscheme: Make use an abstract method + +------------------------------------------------------------------- Old: ---- ranger-1.9.3+git20220401.391f061c.tar.gz New: ---- ranger-1.9.3+git20220615.7e2d1613.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ranger.spec ++++++ --- /var/tmp/diff_new_pack.NI1mHA/_old 2022-06-25 10:25:01.310738825 +0200 +++ /var/tmp/diff_new_pack.NI1mHA/_new 2022-06-25 10:25:01.314738831 +0200 @@ -18,7 +18,7 @@ %define short_version 1.9.3 Name: ranger -Version: 1.9.3+git20220401.391f061c +Version: 1.9.3+git20220615.7e2d1613 Release: 0 Summary: Console File Manager License: GPL-3.0-or-later @@ -37,6 +37,7 @@ Recommends: highlight Recommends: mediainfo Recommends: w3m +Recommends: python3-Pillow BuildArch: noarch %description ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.NI1mHA/_old 2022-06-25 10:25:01.354738888 +0200 +++ /var/tmp/diff_new_pack.NI1mHA/_new 2022-06-25 10:25:01.358738894 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/ranger/ranger</param> - <param name="changesrevision">391f061cb0b0cfa8266c0651f2a6d948f22e01dd</param></service></servicedata> + <param name="changesrevision">7e2d1613c9c52b7c2090eb3db49c65a8ec42c219</param></service></servicedata> (No newline at EOF) ++++++ ranger-1.9.3+git20220401.391f061c.tar.gz -> ranger-1.9.3+git20220615.7e2d1613.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ranger-1.9.3+git20220401.391f061c/.github/workflows/pylint.yml new/ranger-1.9.3+git20220615.7e2d1613/.github/workflows/pylint.yml --- old/ranger-1.9.3+git20220401.391f061c/.github/workflows/pylint.yml 2022-04-01 21:35:20.000000000 +0200 +++ new/ranger-1.9.3+git20220615.7e2d1613/.github/workflows/pylint.yml 2022-06-15 15:25:34.000000000 +0200 @@ -5,10 +5,12 @@ paths: - '.github/workflows/pylint.yml' - '**.py' + - 'requirements.txt' pull_request: paths: - '.github/workflows/pylint.yml' - '**.py' + - 'requirements.txt' jobs: test_pylint: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ranger-1.9.3+git20220401.391f061c/.github/workflows/python.yml new/ranger-1.9.3+git20220615.7e2d1613/.github/workflows/python.yml --- old/ranger-1.9.3+git20220401.391f061c/.github/workflows/python.yml 2022-04-01 21:35:20.000000000 +0200 +++ new/ranger-1.9.3+git20220615.7e2d1613/.github/workflows/python.yml 2022-06-15 15:25:34.000000000 +0200 @@ -28,7 +28,9 @@ - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + # We need to ignore PyLint because we can't install the one we need for + # Python 2.7 and 3.5 + pip install -r <(grep -v pylint requirements.txt) - name: Flake8 and test run: | make test_flake8 test_doctest test_other diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ranger-1.9.3+git20220401.391f061c/ranger/config/rifle.conf new/ranger-1.9.3+git20220615.7e2d1613/ranger/config/rifle.conf --- old/ranger-1.9.3+git20220401.391f061c/ranger/config/rifle.conf 2022-04-01 21:35:20.000000000 +0200 +++ new/ranger-1.9.3+git20220615.7e2d1613/ranger/config/rifle.conf 2022-06-15 15:25:34.000000000 +0200 @@ -185,6 +185,8 @@ #------------------------------------------- # Images #------------------------------------------- +mime ^image, has viewnior, X, flag f = viewnior -- "$@" + mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" mime ^image/svg, has display, X, flag f = display -- "$@" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ranger-1.9.3+git20220401.391f061c/ranger/core/runner.py new/ranger-1.9.3+git20220615.7e2d1613/ranger/core/runner.py --- old/ranger-1.9.3+git20220401.391f061c/ranger/core/runner.py 2022-04-01 21:35:20.000000000 +0200 +++ new/ranger-1.9.3+git20220615.7e2d1613/ranger/core/runner.py 2022-06-15 15:25:34.000000000 +0200 @@ -235,9 +235,11 @@ if toggle_ui: self._activate_ui(False) + + error = None + process = None + try: - error = None - process = None self.fm.signal_emit('runner.execute.before', popen_kws=popen_kws, context=context) try: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ranger-1.9.3+git20220401.391f061c/ranger/ext/accumulator.py new/ranger-1.9.3+git20220615.7e2d1613/ranger/ext/accumulator.py --- old/ranger-1.9.3+git20220401.391f061c/ranger/ext/accumulator.py 2022-04-01 21:35:20.000000000 +0200 +++ new/ranger-1.9.3+git20220615.7e2d1613/ranger/ext/accumulator.py 2022-06-15 15:25:34.000000000 +0200 @@ -3,6 +3,8 @@ from __future__ import (absolute_import, division, print_function) +from abc import abstractmethod + from ranger.ext.direction import Direction @@ -90,8 +92,8 @@ def sync_index(self, **kw): self.move_to_obj(self.pointed_obj, **kw) - @staticmethod - def get_list(): + @abstractmethod + def get_list(self): """OVERRIDE THIS""" return [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ranger-1.9.3+git20220401.391f061c/ranger/gui/colorscheme.py new/ranger-1.9.3+git20220615.7e2d1613/ranger/gui/colorscheme.py --- old/ranger-1.9.3+git20220401.391f061c/ranger/gui/colorscheme.py 2022-04-01 21:35:20.000000000 +0200 +++ new/ranger-1.9.3+git20220615.7e2d1613/ranger/gui/colorscheme.py 2022-06-15 15:25:34.000000000 +0200 @@ -27,6 +27,7 @@ from __future__ import (absolute_import, division, print_function) import os.path +from abc import abstractmethod from curses import color_pair from io import open @@ -72,8 +73,8 @@ fg, bg, attr = self.get(*flatten(keys)) return attr | color_pair(get_color(fg, bg)) - @staticmethod - def use(_): + @abstractmethod + def use(self, context): """Use the colorscheme to determine the (fg, bg, attr) tuple. Override this method in your own colorscheme. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ranger-1.9.3+git20220401.391f061c/ranger/gui/widgets/browsercolumn.py new/ranger-1.9.3+git20220615.7e2d1613/ranger/gui/widgets/browsercolumn.py --- old/ranger-1.9.3+git20220401.391f061c/ranger/gui/widgets/browsercolumn.py 2022-04-01 21:35:20.000000000 +0200 +++ new/ranger-1.9.3+git20220615.7e2d1613/ranger/gui/widgets/browsercolumn.py 2022-06-15 15:25:34.000000000 +0200 @@ -212,7 +212,7 @@ def _format_line_number(self, linum_format, i, selected_i): line_number = i - if self.settings.line_numbers == 'relative': + if self.settings.line_numbers.lower() == 'relative': line_number = abs(selected_i - i) if not self.settings.relative_current_zero and line_number == 0: if self.settings.one_indexed: @@ -273,12 +273,29 @@ copied = [f.path for f in self.fm.copy_buffer] + selected_i = self._get_index_of_selected_file() + # Set the size of the linum text field to the number of digits in the # visible files in directory. - linum_text_len = len(str(self.scroll_begin + self.hei)) + def nr_of_digits(number): + return len(str(number)) + + scroll_end = self.scroll_begin + min(self.hei, len(self.target)) - 1 + distance_to_top = selected_i - self.scroll_begin + distance_to_bottom = scroll_end - selected_i + one_indexed_offset = 1 if self.settings.one_indexed else 0 + + if self.settings.line_numbers.lower() == "relative": + linum_text_len = nr_of_digits(max(distance_to_top, + distance_to_bottom)) + if not self.settings.relative_current_zero: + linum_text_len = max(nr_of_digits(selected_i + + one_indexed_offset), + linum_text_len) + else: + linum_text_len = nr_of_digits(scroll_end + one_indexed_offset) linum_format = "{0:>" + str(linum_text_len) + "}" - selected_i = self._get_index_of_selected_file() for line in range(self.hei): i = line + self.scroll_begin @@ -307,12 +324,15 @@ drawn.path in copied, tagged_marker, drawn.infostring, drawn.vcsstatus, drawn.vcsremotestatus, self.target.has_vcschild, self.fm.do_cut, current_linemode.name, metakey, active_pane, - self.settings.line_numbers) + self.settings.line_numbers.lower(), linum_text_len) # Check if current line has not already computed and cached if key in drawn.display_data: # Recompute line numbers because they can't be reliably cached. - if self.main_column and self.settings.line_numbers != 'false': + if ( + self.main_column + and self.settings.line_numbers.lower() != 'false' + ): line_number_text = self._format_line_number(linum_format, i, selected_i) @@ -337,7 +357,7 @@ space = self.wid # line number field - if self.settings.line_numbers != 'false': + if self.settings.line_numbers.lower() != 'false': if self.main_column and space - linum_text_len > 2: line_number_text = self._format_line_number(linum_format, i, @@ -371,15 +391,16 @@ try: infostringdata = current_linemode.infostring(drawn, metadata) if infostringdata: - infostring.append([" " + infostringdata + " ", + infostring.append([" " + infostringdata, ["infostring"]]) except NotImplementedError: infostring = self._draw_infostring_display(drawn, space) if infostring: infostringlen = self._total_len(infostring) if space - infostringlen > 2: - predisplay_right = infostring + predisplay_right - space -= infostringlen + sep = [[" ", []]] if predisplay_right else [] + predisplay_right = infostring + sep + predisplay_right + space -= infostringlen + len(sep) textstring = self._draw_text_display(text, space) textstringlen = self._total_len(textstring) @@ -445,7 +466,7 @@ infostring_display = [] if self.display_infostring and drawn.infostring \ and self.settings.display_size_in_main_column: - infostring = str(drawn.infostring) + " " + infostring = str(drawn.infostring) if len(infostring) <= space: infostring_display.append([infostring, ['infostring']]) return infostring_display diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ranger-1.9.3+git20220401.391f061c/requirements.txt new/ranger-1.9.3+git20220615.7e2d1613/requirements.txt --- old/ranger-1.9.3+git20220401.391f061c/requirements.txt 2022-04-01 21:35:20.000000000 +0200 +++ new/ranger-1.9.3+git20220615.7e2d1613/requirements.txt 2022-06-15 15:25:34.000000000 +0200 @@ -1,3 +1,3 @@ flake8 -pylint +pylint==2.13.9 # Newer versions drop the python3 port checker, which we need pytest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ranger-1.9.3+git20220401.391f061c/tests/pylint/test_py2_compat.py new/ranger-1.9.3+git20220615.7e2d1613/tests/pylint/test_py2_compat.py --- old/ranger-1.9.3+git20220401.391f061c/tests/pylint/test_py2_compat.py 2022-04-01 21:35:20.000000000 +0200 +++ new/ranger-1.9.3+git20220615.7e2d1613/tests/pylint/test_py2_compat.py 2022-06-15 15:25:34.000000000 +0200 @@ -28,6 +28,7 @@ node=oldstyle_class, confidence=HIGH, ), + ignore_position=True, ): self.checker.visit_classdef(oldstyle_class) @@ -60,6 +61,7 @@ node=print_function_call, confidence=HIGH, ), + ignore_position=True, ): self.checker.visit_call(print_function_call) @@ -100,6 +102,7 @@ node=early_print_function_call, confidence=HIGH, ), + ignore_position=True, ): self.checker.visit_call(early_print_function_call) @@ -117,6 +120,7 @@ node=implicit_format_spec, confidence=HIGH, ), + ignore_position=True, ): self.checker.visit_call(implicit_format_spec) @@ -141,6 +145,7 @@ node=with_Popen, confidence=HIGH, ), + ignore_position=True, ): self.checker.visit_with(with_subprocess_Popen) self.checker.visit_with(with_Popen) @@ -160,6 +165,7 @@ node=f_string, confidence=HIGH, ), + ignore_position=True, ): self.checker.visit_joinedstr(f_string) with self.assertNoMessages(): ++++++ ranger.obsinfo ++++++ --- /var/tmp/diff_new_pack.NI1mHA/_old 2022-06-25 10:25:01.582739214 +0200 +++ /var/tmp/diff_new_pack.NI1mHA/_new 2022-06-25 10:25:01.590739225 +0200 @@ -1,5 +1,5 @@ name: ranger -version: 1.9.3+git20220401.391f061c -mtime: 1648841720 -commit: 391f061cb0b0cfa8266c0651f2a6d948f22e01dd +version: 1.9.3+git20220615.7e2d1613 +mtime: 1655299534 +commit: 7e2d1613c9c52b7c2090eb3db49c65a8ec42c219