summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Mollier <emollier@debian.org>2024-03-17 15:51:08 +0100
committerÉtienne Mollier <emollier@debian.org>2024-03-17 15:51:08 +0100
commit167e0eb6bd1dd9f2a268595cccfa7c7902160183 (patch)
treeb2214e5fcb8e1de990123fc8c49db9f7c1a6de89
parent3610b418621ed1fffc54aa296d37f96d7b277aa0 (diff)
fix-python3.12-warning.patch: new.
This patch fixes a syntax warning in the less prompt.
-rw-r--r--debian/patches/fix-python3.12-warning.patch18
-rw-r--r--debian/patches/series1
2 files changed, 19 insertions, 0 deletions
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 <emollier@debian.org>
+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