public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ckermit] epel9: Actually remove upstreamed patch
@ 2026-11-22 20:00 Martin Jackson
0 siblings, 0 replies; only message in thread
From: Martin Jackson @ 2026-11-22 20:00 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ckermit
Branch : epel9
Commit : 9d3f4270e71ef2675fbee2749bb3c8510030b80c
Author : Martin Jackson <martjack@redhat.com>
Date : 2026-10-01T10:30:27-05:00
Stats : +0/-66 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/ckermit/c/9d3f4270e71ef2675fbee2749bb3c8510030b80c?branch=epel9
Log:
Actually remove upstreamed patch
---
diff --git a/ckermit-513-fix-dirlentest.patch b/ckermit-513-fix-dirlentest.patch
deleted file mode 100644
index ff34045..0000000
--- a/ckermit-513-fix-dirlentest.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-From ea79f73a12785ef4e00b3e0dd47adcddc71ea2c6 Mon Sep 17 00:00:00 2001
-From: John Goerzen <jgoerzen@complete.org>
-Date: Wed, 30 Sep 2026 14:32:07 -0600
-Subject: [PATCH] Test: Fix the assembly of a path
-
-When tmpdir is a certain size, the generated directory name could end in
-a slash, confusing the length-selecting algorithm. Now stop the loop a
-few bytes earlier to guarantee this won't happen.
-
-Fixes #40. Thank you Martin Jackson for the report from Fedora.
----
- tests/test_wconversion_boundaries.py | 27 +++++++++++++++++----------
- 1 file changed, 17 insertions(+), 10 deletions(-)
-
-diff --git a/tests/test_wconversion_boundaries.py b/tests/test_wconversion_boundaries.py
-index 208327a..9ed4b99 100644
---- a/tests/test_wconversion_boundaries.py
-+++ b/tests/test_wconversion_boundaries.py
-@@ -23,6 +23,21 @@ def _distinct_chars(length):
- return "".join(chr(97 + (i % 26)) for i in range(length))
-
-
-+def _long_dirname(base, total=450):
-+ """Return a path under base of exactly total characters.
-+
-+ Each loop component adds 11 characters, so the loop ends between
-+ 13 and 3 characters short of total. The final component then has
-+ at least two characters and the path never ends in a slash.
-+ """
-+ path = str(base)
-+ while len(path) < total - 13:
-+ path += "/" + _distinct_chars(10)
-+ path += "/" + "x" * (total - 1 - len(path))
-+ assert len(path) == total
-+ return path
-+
-+
- def test_send_except_pattern_over_256_rejected(run_wermit):
- """Verify SEND /EXCEPT: rejects patterns longer than 256 characters."""
- pattern = _distinct_chars(300)
-@@ -106,11 +121,7 @@ def test_get_move_to_long_directory_created(tmp_path, run_wermit):
-
- The directory is created before checking for an active connection.
- """
-- destdir = str(tmp_path)
-- while len(destdir) < 440:
-- destdir += "/" + _distinct_chars(10)
-- destdir += "/" + "x" * (449 - len(destdir))
-- assert len(destdir) == 450
-+ destdir = _long_dirname(tmp_path)
-
- result = run_wermit(f"get /move-to:{destdir} nonexistent.txt")
- assert result.returncode >= 0, (
-@@ -164,11 +175,7 @@ def test_send_move_to_long_directory_created(tmp_path, run_wermit):
- """
- src = tmp_path / "f.txt"
- src.write_text("hello world")
-- destdir = str(tmp_path)
-- while len(destdir) < 440:
-- destdir += "/" + _distinct_chars(10)
-- destdir += "/" + "x" * (449 - len(destdir))
-- assert len(destdir) == 450
-+ destdir = _long_dirname(tmp_path)
-
- result = run_wermit(f"send /move-to:{destdir} {src}")
- assert result.returncode >= 0, (
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-22 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-22 20:00 [rpms/ckermit] epel9: Actually remove upstreamed patch Martin Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox