From d55d408ac03c996f505f0d2e5200669e6b5fd230 Mon Sep 17 00:00:00 2001 From: liyuan Date: Fri, 20 Oct 2023 08:01:15 +0800 Subject: [PATCH] backport Fix typo in debugprint call --- 0004-Fix-typo-in-debugprint-call.patch | 26 ++++++++++++++++++++++++++ system-config-printer.spec | 6 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0004-Fix-typo-in-debugprint-call.patch diff --git a/0004-Fix-typo-in-debugprint-call.patch b/0004-Fix-typo-in-debugprint-call.patch new file mode 100644 index 0000000..1b4b34d --- /dev/null +++ b/0004-Fix-typo-in-debugprint-call.patch @@ -0,0 +1,26 @@ +From 027ed8683a0ec30dbe705fe4d8f31c8ccb973199 Mon Sep 17 00:00:00 2001 +From: Zdenek Dohnal +Date: Thu, 30 Aug 2018 12:05:53 +0200 +Subject: [PATCH] Fix typo in debugprint call + (https://github.com/zdohnal/system-config-printer/issues/105) + +--- + newprinter.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/newprinter.py b/newprinter.py +index 850c986b..051fc253 100644 +--- a/newprinter.py ++++ b/newprinter.py +@@ -1049,7 +1049,7 @@ class NewPrinterGUI(GtkGUI): + debugprint('No packages for driver') + return None + if len(arches) > 1: +- debugprint('Returned more than one matching architecture, please report this as a bug: %s', repr (arches)) ++ debugprint('Returned more than one matching architecture, please report this as a bug: %s' % repr (arches)) + return None + + pkgs = pkgs[arches[0]] +-- +2.33.0 + diff --git a/system-config-printer.spec b/system-config-printer.spec index d78d1a8..e58989b 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -3,7 +3,7 @@ Name: system-config-printer Summary: a graphical tool for CUPS administration Version: 1.5.11 -Release: 17 +Release: 18 License: GPLv2+ URL: https://github.com/zdohnal/system-config-printer Source0: https://github.com/zdohnal/system-config-printer/archive/%{version}.tar.gz @@ -11,6 +11,7 @@ Source0: https://github.com/zdohnal/system-config-printer/archive/%{versi Patch0001: 0001-Fix-constructing-the-auth-dialog.patch Patch0002: 0002-Require-proper-version-of-GDK-and-GTK-in-scp-dbus-se.patch Patch0003: 0003-Set-programe-name-for-scp-dbus-service-as-well.patch +Patch0004: 0004-Fix-typo-in-debugprint-call.patch BuildRequires: libusb1-devel gcc gettext-devel systemd xmlto systemd-devel python3-devel BuildRequires: intltool cups-devel >= 1.2 desktop-file-utils >= 0.2.92 pkgconfig(glib-2.0) @@ -86,6 +87,9 @@ rm -rf /var/cache/foomatic/foomatic.pickle exit 0 %changelog +* Thu Oct 26 2023 liyuanyuan - 1.5.11-18 +- Fix typo in debugprint call + * Thu Oct 19 2023 liyuanyuan - 1.5.11-17 - Set programe name for scp-dbus-service as well - Require proper version of GDK and GTK in scp-dbus-service as well -- Gitee