From a2446f417874dd45d63ca271202489b80fcfb141 Mon Sep 17 00:00:00 2001 From: liyuan Date: Fri, 22 Dec 2023 02:51:20 +0800 Subject: [PATCH] backport Fix typo in debugprint call --- 0001-Fix-typo-in-debugprint-call.patch | 26 ++++++++++++++++++++++++++ system-config-printer.spec | 6 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0001-Fix-typo-in-debugprint-call.patch diff --git a/0001-Fix-typo-in-debugprint-call.patch b/0001-Fix-typo-in-debugprint-call.patch new file mode 100644 index 0000000..1b4b34d --- /dev/null +++ b/0001-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 0eeba83..3286847 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: 20 +Release: 21 License: GPLv2+ URL: https://github.com/zdohnal/system-config-printer Source0: https://github.com/zdohnal/system-config-printer/archive/%{version}.tar.gz @@ -26,6 +26,7 @@ Patch2: Use-ValueError-instead-of-ImportError-to-catch-excep.patch Patch3: Fix-typo.patch Patch4: Update-da.po.patch Patch5: Update-de.po.patch +Patch6: 0001-Fix-typo-in-debugprint-call.patch %description %{name} is a graphical tool for CUPS administration. It @@ -87,6 +88,9 @@ rm -rf /var/cache/foomatic/foomatic.pickle exit 0 %changelog +* Thu Dec 28 2023 liyuanyuan - 1.5.11-21 +- Fix typo in debugprint call + * Mon Jan 09 2023 xuxinyu - 1.5.11-20 - Update de.po -- Gitee