]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/regexes.py: Do not allow colons in filenames.
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 8 Aug 2014 08:38:15 +0000 (10:38 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 8 Aug 2014 08:38:15 +0000 (10:38 +0200)
Colons should not be used anywhere as the epoch part of versions is
not included in the filename.

daklib/regexes.py

index 06cb173604689b3d1b42d2ac7180f80b56c49ffa..dd1c3dd8475da393e8188dd0490e368ae57bb4d2 100644 (file)
@@ -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