X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils.py;h=b019d2ef8d58ac4898e39f067bc8ec0e9149ef6c;hb=763770541a41d6497105a2c533c93a83095b17ea;hp=5089f203710a7e7b33e01a2d2add408d5c0abfcb;hpb=45c61f94d3f6625c1f1074549ea677d81bd15c4d;p=dak.git diff --git a/utils.py b/utils.py index 5089f203..b019d2ef 100644 --- a/utils.py +++ b/utils.py @@ -1,6 +1,6 @@ # Utility functions # Copyright (C) 2000, 2001, 2002 James Troup -# $Id: utils.py,v 1.46 2002-05-23 12:36:15 troup Exp $ +# $Id: utils.py,v 1.48 2002-06-22 22:34:35 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ re_issource = re.compile (r"(.+)_(.+?)\.(orig\.tar\.gz|diff\.gz|tar\.gz|dsc)$"); re_single_line_field = re.compile(r"^(\S*)\s*:\s*(.*)"); re_multi_line_field = re.compile(r"^\s(.*)"); -re_taint_free = re.compile(r"^[-+\.\w]+$"); +re_taint_free = re.compile(r"^[-+~\.\w]+$"); re_parse_maintainer = re.compile(r"^\s*(\S.*\S)\s*\<([^\> \t]+)\>"); @@ -530,6 +530,11 @@ def validate_changes_file_arg(file, fatal=1): ################################################################################ +def real_arch(arch): + return (arch != "source" and arch != "all"); + +################################################################################ + def get_conf(): return Cnf;