[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] daklib/regexes.py: Do not allow colons in filenames.



Colons should not be used anywhere as the epoch part of versions is
not included in the filename.
---
 daklib/regexes.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/daklib/regexes.py b/daklib/regexes.py
index 06cb173..dd1c3dd 100644
--- a/daklib/regexes.py
+++ b/daklib/regexes.py
@@ -133,10 +133,10 @@ re_includeinpdiff = re.compile(r"(Translation-[a-zA-Z_]+\.(?:bz2|xz))")
 ######################################################################
 
 # Match safe filenames
-re_file_safe = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9_.:~+-]*$')
+re_file_safe = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9_.~+-]*$')
 
 # Prefix of binary and source filenames
-_re_file_prefix = r'^(?P<package>[a-z0-9][a-z0-9.+-]+)_(?P<version>[A-Za-z0-9.:~+-]+?)'
+_re_file_prefix = r'^(?P<package>[a-z0-9][a-z0-9.+-]+)_(?P<version>[A-Za-z0-9.~+-]+?)'
 
 # Match binary packages
 # Groups: package, version, architecture, type
-- 
1.7.10.4


Reply to: