Fix SrcUnpackPatches to ignore comment lines. Thanks to Christian Ruppert
authorZac Medico <zmedico@gentoo.org>
Wed, 6 May 2009 16:48:35 +0000 (16:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 6 May 2009 16:48:35 +0000 (16:48 -0000)
<idl0r@g.o> for reporting.

svn path=/main/trunk/; revision=13617

pym/repoman/checks.py

index 78875b4c08a072c52b8e4a1e83f840b2f09b511f..7dfbc8124c879b9aff80dd3700635370f182b2a1 100644 (file)
@@ -232,6 +232,7 @@ class EapiDefinition(LineCheck):
 class SrcUnpackPatches(LineCheck):
        repoman_check_name = 'ebuild.minorsyn'
 
+       ignore_line = re.compile(r'(^\s*#)')
        src_unpack_re = re.compile(r'^src_unpack\(\)')
        func_end_re = re.compile(r'^\}$')
        src_prepare_tools_re = re.compile(r'\s(e?patch|sed)\s')