diff options
author | Olav Vitters <olav@vitters.nl> | 2014-07-08 01:20:49 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2014-07-08 01:20:49 +0200 |
commit | d4871601d0f2699089bcd8c93d17a674493209ba (patch) | |
tree | de751228a4b819f98c16981a3d4716e4da30f7a4 | |
parent | 16d9ff072a55820cc45640f9ee9699bd6be6fca5 (diff) | |
download | mgagnome-d4871601d0f2699089bcd8c93d17a674493209ba.tar mgagnome-d4871601d0f2699089bcd8c93d17a674493209ba.tar.gz mgagnome-d4871601d0f2699089bcd8c93d17a674493209ba.tar.bz2 mgagnome-d4871601d0f2699089bcd8c93d17a674493209ba.tar.xz mgagnome-d4871601d0f2699089bcd8c93d17a674493209ba.zip |
remove some debug code
-rwxr-xr-x | mgagnome | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -347,9 +347,7 @@ class SpecFile(object): re_update_br = re.compile(r'^(?P<pre>BuildRequires:\s*)(?P<br>[^\s%{},]+?)(?P<post>\s*(?:(?:[<>]=?|=)\s+(?:[^\s%{},]+|\%\{[^\s{%}]+\}|\%[^\s%{},]+))?\s*\n)', re.MULTILINE + re.IGNORECASE) # re_update_br_unsplit = re.compile(r'^(?P<pre>BuildRequires:\s*)(?P<unsplit>[^\n,]+,[^\n]*)(?P<post>\s*\n)', re.MULTILINE + re.IGNORECASE) - re_find_combined_br = re.compile(r'^(?P<pre>BuildRequires:\s*)(?P<unsplit>(?:%s,?(?:[ \t\f\v]+|$)){2,})(?P<unsplitpost>\n)' % (re_br_part.pattern,), re.MULTILINE + re.IGNORECASE) - re_update_br_unsplit = re_find_combined_br -# re_find_combined_br = re.compile(r'^(?P<pre>BuildRequires:\s*)%s.*' % (re_br_part,), re.MULTILINE + re.IGNORECASE) + re_update_br_unsplit = re.compile(r'^(?P<pre>BuildRequires:\s*)(?P<unsplit>(?:%s,?(?:[ \t\f\v]+|$)){2,})(?P<unsplitpost>\n)' % (re_br_part.pattern,), re.MULTILINE + re.IGNORECASE) def __init__(self, path, module=None): self.path = path @@ -1263,14 +1261,6 @@ def cmd_clean_spec_multi(args): made_changes=False -# with open(s.path, "r") as f: -# data = f.read() -# -# for mo in s.re_find_combined_br.finditer(data): -# print "c", mo.group(0).strip(), mo.groupdict() -# for match in s.re_br_part.findall(mo.group('unsplit')): -# print "d", match - changes = {} # Convert perl- and -devel buildrequires into perl() and pkgconfig() requires |