public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/numberstation] f43: Patch to fix syntax error
Date: Tue, 16 Jun 2026 17:21:51 GMT [thread overview]
Message-ID: <178163051143.1.5159477060310330187.rpms-numberstation-690e499587ff@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-16 17:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178163051143.1.5159477060310330187.rpms-numberstation-690e499587ff@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox