[projects/pld-ftp-admin] Use raw string or regex
baggins
baggins at pld-linux.org
Tue Mar 18 10:46:50 CET 2025
commit d8e537f592f7a1ac644eed69657001dc2d134a8a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Mar 18 09:40:12 2025 +0100
Use raw string or regex
wwwbin/dump-packagenames.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/wwwbin/dump-packagenames.py b/wwwbin/dump-packagenames.py
index 5202d6c..665911d 100755
--- a/wwwbin/dump-packagenames.py
+++ b/wwwbin/dump-packagenames.py
@@ -22,7 +22,7 @@ dirs = ['/home/services/ftp/pld/dists/3.0/PLD/x32/RPMS',
outname = "/home/pld/admins/th/www/name-srcname.txt"
re_rpm = re.compile(r'.*\.rpm$')
-re_nvr = re.compile('^(.*)-([^-]*)-([^-]*)\.rpm$')
+re_nvr = re.compile(r'^(.*)-([^-]*)-([^-]*)\.rpm$')
ts = rpm.ts()
ts.setVSFlags(-1)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/d8e537f592f7a1ac644eed69657001dc2d134a8a
More information about the pld-cvs-commit
mailing list