X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fregexes.py;h=6e00164ce1590051d41f157d20a4e864e8204428;hb=fdbef587c29814f97c192de5a8b7e9f09cc45fa4;hp=06cb173604689b3d1b42d2ac7180f80b56c49ffa;hpb=5bf93e8c52febd744c56d72dbbb4edc0ccca0177;p=dak.git diff --git a/daklib/regexes.py b/daklib/regexes.py index 06cb1736..6e00164c 100644 --- a/daklib/regexes.py +++ b/daklib/regexes.py @@ -34,8 +34,6 @@ re_isanum = re.compile (r"^\d+$") #: Looking for the default reply re_default_answer = re.compile(r"\[(.*)\]") -#: Used in build_summaries to make changes output look better -re_fdnic = re.compile(r"\n\n") #: Detect a binnmu re_bin_only_nmu = re.compile(r"\+b\d+$") @@ -133,10 +131,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[a-z0-9][a-z0-9.+-]+)_(?P[A-Za-z0-9.:~+-]+?)' +_re_file_prefix = r'^(?P[a-z0-9][a-z0-9.+-]+)_(?P[A-Za-z0-9.~+-]+?)' # Match binary packages # Groups: package, version, architecture, type