http://bugs.grommit.com/show_bug.cgi?id=364





------- Comment #1 from richlowe at richlowe.net  2007-10-20 19:20 PDT -------
If the blocks are different lengths, the padding throws us off:

diff -r 2b4ccf19137a usr/src/tools/onbld/Checks/Cddl.py
--- a/usr/src/tools/onbld/Checks/Cddl.py        Sat Oct 20 21:55:31 2007 -0400
+++ b/usr/src/tools/onbld/Checks/Cddl.py        Sat Oct 20 22:26:08 2007 -0400
@@ -51,7 +51,8 @@ def checkblock(block):
 def checkblock(block):
        line = block['start']
        license = block['block']
-       for file, valid in map(lambda x,y: (x.lstrip(CmntChrs), y),
+
+       for file, valid in map(lambda x,y: (x and x.lstrip(CmntChrs), y),
                               license, CDDL):
                if file != valid:
                        raise CddlError(line, file, valid)


-- 
Configure bugmail: http://bugs.grommit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to