[packages/rpm-build-tools] Get base name of the patch.

arekm arekm at pld-linux.org
Mon Mar 9 19:51:16 CET 2026


commit 6157ba28e9afc26d4f6ad10edb92187d5d610513
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 9 19:50:58 2026 +0100

    Get base name of the patch.

 rediff-patches.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rediff-patches.py b/rediff-patches.py
index 417ecb9..4ffc122 100755
--- a/rediff-patches.py
+++ b/rediff-patches.py
@@ -186,7 +186,7 @@ def main():
             continue
         if args.skip_patches and patch_nr in args.skip_patches:
             continue
-        patch_name = patches[patch_nr]
+        patch_name = os.path.basename(patches[patch_nr])
         logging.info("*** patch %d: %s" % (patch_nr, patch_name))
 
         tempspec = prepare_spec(r, patch_nr, before=True)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/6157ba28e9afc26d4f6ad10edb92187d5d610513



More information about the pld-cvs-commit mailing list