public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/borgmatic] f43: update to 2.1.10
@ 2026-10-14  2:24 Felix Kaechele
  0 siblings, 0 replies; only message in thread
From: Felix Kaechele @ 2026-10-14  2:24 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/borgmatic
            Branch : f43
            Commit : 78746f32b18b1eb2659bfdc36bbdde94506c214c
            Author : Felix Kaechele <felix@kaechele.ca>
            Date   : 2026-10-13T21:48:52-04:00
            Stats  : +58/-3 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/borgmatic/c/78746f32b18b1eb2659bfdc36bbdde94506c214c?branch=f43

            Log:
            update to 2.1.10

- fix for rhbz#2549351
- package Apprise and browse extras

Signed-off-by: Felix Kaechele <felix@kaechele.ca>

---
diff --git a/borgmatic.spec b/borgmatic.spec
index 268a3c1..891a2b3 100644
--- a/borgmatic.spec
+++ b/borgmatic.spec
@@ -1,11 +1,13 @@
 Name:           borgmatic
-Version:        2.1.9
+Version:        2.1.10
 Release:        %autorelease
 Summary:        Simple Python wrapper script for borgbackup
 
 License:        GPL-3.0-or-later
 URL:            https://torsion.org/borgmatic
 Source0:        https://projects.torsion.org/borgmatic-collective/borgmatic/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# Hotfix for rhbz#2549351, cherry picked onto 2.1.10
+Patch0:         https://projects.torsion.org/borgmatic-collective/borgmatic/commit/f46c509cf0e3eb4ede4ddb9c2ca5a21a7b8284dc.patch
 
 BuildArch:      noarch
 
@@ -26,11 +28,13 @@ borgmatic (formerly atticmatic) is a simple Python wrapper script for
 the Borg backup software that initiates a backup, prunes any old backups
 according to a retention policy, and validates backups for consistency.
 
+%pyproject_extras_subpkg -n %{name} Apprise,browse
+
 %generate_buildrequires
 %pyproject_buildrequires
 
 %prep
-%autosetup -n %{name}
+%autosetup -n %{name} -p1
 
 
 %build

diff --git a/f46c509cf0e3eb4ede4ddb9c2ca5a21a7b8284dc.patch b/f46c509cf0e3eb4ede4ddb9c2ca5a21a7b8284dc.patch
new file mode 100644
index 0000000..c616c66
--- /dev/null
+++ b/f46c509cf0e3eb4ede4ddb9c2ca5a21a7b8284dc.patch
@@ -0,0 +1,51 @@
+commit ad8f4cc4b76d9f2839de68e4b5208672f7788b0b
+Author: Dan Helfman <witten@torsion.org>
+Date:   Tue Oct 13 14:36:19 2026 -0700
+
+    Fix an attribute error when running the experimental "browse" action with older versions of the Textual library (#1371).
+
+diff --git a/borgmatic/actions/browse/archives_list.py b/borgmatic/actions/browse/archives_list.py
+index 9182849adfbc..041162aa2a87 100644
+--- a/borgmatic/actions/browse/archives_list.py
++++ b/borgmatic/actions/browse/archives_list.py
+@@ -61,7 +61,11 @@ class Archives_list(textual.widgets.OptionList):
+         label_pieces = (
+             (archive_name, '[dim](latest)[/dim]') if len(self.options) == 1 else (archive_name,)
+         )
+-        highlighted_option = self.highlighted_option
++
++        # Textual 6.0.0+ has self.highlighted_option, but we want to support older versions.
++        highlighted_option = (
++            self.options[self.highlighted] if self.highlighted is not None else None
++        )
+ 
+         loading_indicator = self.get_option('loading-indicator')
+         self.remove_option('loading-indicator')
+diff --git a/borgmatic/actions/browse/directory_list.py b/borgmatic/actions/browse/directory_list.py
+index ff331e271015..71df7d297f2a 100644
+--- a/borgmatic/actions/browse/directory_list.py
++++ b/borgmatic/actions/browse/directory_list.py
+@@ -67,7 +67,12 @@ def add_archive_paths(
+ 
+     After all of this reshuffling, make sure the original highlighted option remains highlighted.
+     '''
+-    highlighted_option = directory_list.highlighted_option
++    # Textual 6.0.0+ has self.highlighted_option for this, but we want to support older versions.
++    highlighted_option = (
++        directory_list.options[directory_list.highlighted]
++        if directory_list.highlighted is not None
++        else None
++    )
+     original_options_count = len(directory_list.options)
+ 
+     sorted_options = sorted(
+@@ -95,7 +100,8 @@ def add_archive_paths(
+         return
+ 
+     # Retain the highlighted option position even as other options load around it.
+-    directory_list.set_options(sorted_options)
++    directory_list.clear_options()
++    directory_list.add_options(sorted_options)
+     directory_list.highlighted = (
+         directory_list.get_option_index(highlighted_option.id)
+         if highlighted_option and directory_list.highlighted_option_changed

diff --git a/sources b/sources
index cee4bc8..e54cc2d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (borgmatic-2.1.9.tar.gz) = 870a0a6ba137d4c32ed70302521e6d550d141d138db2089d26f79c5bb7ed2deb0b8f83788f91a4a5cf377e50e0eebf7a104f53d1b5ee4d5e0fa64c73c6edabae
+SHA512 (borgmatic-2.1.10.tar.gz) = 6b6178d9c05e48a2c6e74db8c0900584f1f2594210e392ef5e758becdd0d14579cc4f4cd2ab5017d76267040cf950ddbbf28ca0abef8a4e08ee47978d55430ee

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-14  2:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14  2:24 [rpms/borgmatic] f43: update to 2.1.10 Felix Kaechele

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox