From 167e0eb6bd1dd9f2a268595cccfa7c7902160183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Mollier?= Date: Sun, 17 Mar 2024 15:51:08 +0100 Subject: fix-python3.12-warning.patch: new. This patch fixes a syntax warning in the less prompt. --- debian/patches/fix-python3.12-warning.patch | 18 ++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 19 insertions(+) create mode 100644 debian/patches/fix-python3.12-warning.patch create mode 100644 debian/patches/series diff --git a/debian/patches/fix-python3.12-warning.patch b/debian/patches/fix-python3.12-warning.patch new file mode 100644 index 0000000..60e532e --- /dev/null +++ b/debian/patches/fix-python3.12-warning.patch @@ -0,0 +1,18 @@ +Description: fix invalid escape sequence in less prompt. +Author: Étienne Mollier +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064209 +Forwarded: https://lists.sr.ht/~lioploum/offpunk-devel/patches/49706 +Last-Update: 2024-03-17 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- offpunk.orig/opnk.py ++++ offpunk/opnk.py +@@ -49,7 +49,7 @@ + # are there on purpose (surch in asciiart) + #--incsearch : incremental search starting rev581 + def less_cmd(file, histfile=None,cat=False,grep=None): +- less_prompt = "page %%d/%%D- lines %%lb/%%L - %%Pb\%%" ++ less_prompt = "page %%d/%%D- lines %%lb/%%L - %%Pb\\%%" + if less_version >= 581: + less_base = "less --incsearch --save-marks -~ -XRfWiS -P \"%s\""%less_prompt + elif less_version >= 572: diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..586ea14 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-python3.12-warning.patch -- cgit v1.2.3