public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/numberstation] f43: Patch to fix syntax error
@ 2026-06-16 17:21 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-16 17:21 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/numberstation
Branch : f43
Commit : 690e499587ff46c7d3df2ef88e2de0c4895a8eeb
Author : Tomi Lähteenmäki <lihis@lihis.net>
Date   : 2026-06-16T20:21:25+03:00
Stats  : +35/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/numberstation/c/690e499587ff46c7d3df2ef88e2de0c4895a8eeb?branch=f43

Log:
Patch to fix syntax error

---
diff --git a/0001-Fix-if-statement-after-b32decode-removal.patch b/0001-Fix-if-statement-after-b32decode-removal.patch
new file mode 100644
index 0000000..4d0c3ad
--- /dev/null
+++ b/0001-Fix-if-statement-after-b32decode-removal.patch
@@ -0,0 +1,28 @@
+From b56e5ee48363cdc7d0480839091c2f019ed83a3b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tomi=20L=C3=A4hteenm=C3=A4ki?= <lihis@lihis.net>
+Date: Tue, 16 Jun 2026 20:01:04 +0300
+Subject: [PATCH] Fix if statement after b32decode removal
+
+In commit 06972771d375a94f48a4e5f4f42c48c1f57b18af the try-except was
+intended to converted to if-else but only 'try' was changed to 'if'
+which causes syntax error.
+---
+ numberstation/window.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/numberstation/window.py b/numberstation/window.py
+index 7f9a7ce..619f212 100644
+--- a/numberstation/window.py
++++ b/numberstation/window.py
+@@ -318,7 +318,7 @@ class NumberstationWindow:
+         if len(value) >= 6:
+             self.add_secret.get_style_context().remove_class('error')
+             self.add_save.set_sensitive(True)
+-        except:
++        else:
+             self.add_secret.get_style_context().add_class('error')
+             self.add_save.set_sensitive(False)
+ 
+-- 
+2.54.0
+

diff --git a/numberstation.spec b/numberstation.spec
index 2b6d8e0..6fff8a3 100644
--- a/numberstation.spec
+++ b/numberstation.spec
@@ -1,10 +1,12 @@
 Name:           numberstation
 Version:        1.5.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        TOTP Authenticator application
 License:        GPL-3.0-or-later
 URL:            https://sr.ht/~martijnbraam/%{name}/
 Source0:        https://git.sr.ht/~martijnbraam/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# https://lists.sr.ht/~martijnbraam/public-inbox/%3C178162974621.27507.9229547376388854436-0@git.sr.ht%3E
+Patch0:         0001-Fix-if-statement-after-b32decode-removal.patch
 Requires:       libhandy
 Requires:       python3-gobject
 Requires:       python3-keyring
@@ -22,7 +24,7 @@ BuildRequires:  libappstream-glib
 %{summary}
 
 %prep
-%autosetup
+%autosetup -p1
 
 %conf
 %meson
@@ -48,6 +50,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/org.postmarke
 %{_datadir}/%{name}
 
 %changelog
+* Tue Jun 16 2026 Tomi Lähteenmäki <lihis@lihis.net> - 1.5.0-2
+- Patch to fix syntax error
+
 * Mon Jun 15 2026 Tomi Lähteenmäki <lihis@lihis.net> - 1.5.0-1
 - Update to v1.5.0
 

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

only message in thread, other threads:[~2026-06-16 17:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-16 17:21 [rpms/numberstation] f43: Patch to fix syntax error 

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