From d4871601d0f2699089bcd8c93d17a674493209ba Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Tue, 8 Jul 2014 01:20:49 +0200 Subject: remove some debug code --- mgagnome | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/mgagnome b/mgagnome index 0dca045..f4a69b1 100755 --- a/mgagnome +++ b/mgagnome @@ -347,9 +347,7 @@ class SpecFile(object): re_update_br = re.compile(r'^(?P
BuildRequires:\s*)(?P
[^\s%{},]+?)(?P\s*(?:(?:[<>]=?|=)\s+(?:[^\s%{},]+|\%\{[^\s{%}]+\}|\%[^\s%{},]+))?\s*\n)', re.MULTILINE + re.IGNORECASE) # re_update_br_unsplit = re.compile(r'^(?P
BuildRequires:\s*)(?P[^\n,]+,[^\n]*)(?P\s*\n)', re.MULTILINE + re.IGNORECASE)
 
-    re_find_combined_br = re.compile(r'^(?P
BuildRequires:\s*)(?P(?:%s,?(?:[ \t\f\v]+|$)){2,})(?P\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
BuildRequires:\s*)%s.*' % (re_br_part,), re.MULTILINE + re.IGNORECASE)
+    re_update_br_unsplit = re.compile(r'^(?P
BuildRequires:\s*)(?P(?:%s,?(?:[ \t\f\v]+|$)){2,})(?P\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
-- 
cgit v1.2.1