From: Joerg Jaspert Date: Tue, 27 Oct 2009 20:46:30 +0000 (+0100) Subject: Merge commit 'lamby/lintian_autoreject' into merge X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=commitdiff_plain;h=3a044cf559c390a0a4dc0658ec565b6a327f136a Merge commit 'lamby/lintian_autoreject' into merge * commit 'lamby/lintian_autoreject': Disable check_lintian for now. Only lintian reject uploads to unstable or experimental Fix use of "wayout" name. dict[k] raises IndexError if does not exist - check with infix 'in' instead. Actually add a seperator to our --tags-from-file input. lintian YAML has a "lintian" root element. Close sourcefile. Dedent again by returning if lintian doesn't return any content. Return all the lintian-related rejections, not just the first one. It's called 'next', not 'continue'. =) Dedent again by using continue. Remove one level of indentation by using continue Simple check for lintian regex Use set() instead of Perlesque hash[key] = 1 autoreject Add lintian tags file Signed-off-by: Joerg Jaspert --- 3a044cf559c390a0a4dc0658ec565b6a327f136a diff --cc tests/test_regexes.py index 32fd4c1d,9187a541..2f8fed1e --- a/tests/test_regexes.py +++ b/tests/test_regexes.py @@@ -32,5 -30,11 +32,14 @@@ class re_single_line_field(unittest.Tes self.assertEqual(self.MATCH('Foo::bar').groups(), ('Foo', ':bar')) self.assertEqual(self.MATCH('Foo: :bar').groups(), ('Foo', ':bar')) + class re_parse_lintian(unittest.TestCase): + MATCH = regexes.re_parse_lintian.match + + def testSimple(self): + self.assertEqual( + self.MATCH('W: tzdata: binary-without-manpage usr/sbin/tzconfig').groups(), + ('W', 'tzdata', 'binary-without-manpage', 'usr/sbin/tzconfig') + ) ++ +if __name__ == '__main__': + unittest.main()