Author: fw Date: 2005-11-03 07:43:25 +0000 (Thu, 03 Nov 2005) New Revision: 2647 Modified: lib/python/bugs.py Log: lib/python/bugs.py (FileBase): Tolerate more kinds of whitespace in some places. Modified: lib/python/bugs.py ==================================================================--- lib/python/bugs.py 2005-11-02 21:14:19 UTC (rev 2646) +++ lib/python/bugs.py 2005-11-03 07:43:25 UTC (rev 2647) @@ -472,10 +472,10 @@ re_package_required = re.compile(r''^(?:\[.*\]\s*)?-'') re_package_version = re.compile( - r''^(?:\[([a-z]+)\] )?- ([A-Za-z0-9:.+-]+)\s*'' + r''^(?:\[([a-z]+)\]\s)?-\s([A-Za-z0-9:.+-]+)\s*'' + r''(?:\s([A-Za-z0-9:.+-]+)\s*)?(?:\s\((.*)\))?$'') re_package_no_version = re.compile( - r''^(?:\[([a-z]+)\] )?- ([A-Za-z0-9:.+-]+)'' + r''^(?:\[([a-z]+)\]\s)?-\s([A-Za-z0-9:.+-]+)'' + r''\s+<([a-z-]+)>\s*(?:\s\((.*)\))?$'') re_not_for_us_required = re.compile(r''^NOT-FOR-US:'') re_not_for_us = re.compile(r''^NOT-FOR-US:\s+(.*?)\s*$'')