]> git.decadent.org.uk Git - dak.git/commitdiff
fix len() calls
authorMark Hymers <mhy@debian.org>
Sat, 14 Mar 2009 15:29:19 +0000 (15:29 +0000)
committerMark Hymers <mhy@debian.org>
Sat, 14 Mar 2009 15:29:19 +0000 (15:29 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/binary.py

index 29c5c2ad5029c69e35d0e92013b2a345b7209abe..88d78761cadcba3cdce04864d992ef8062f0cc15 100755 (executable)
@@ -138,11 +138,11 @@ class Binary(object):
         self.__scan_ar()
         rejected = not self.chunks
         if relaxed:
-            if en(self.chunks) < 3:
+            if len(self.chunks) < 3:
                 rejected = True
                 self.reject("%s: found %d chunks, expected at least 3." % (self.filename, len(self.chunks)))
         else:
-            if en(self.chunks) != 3:
+            if len(self.chunks) != 3:
                 rejected = True
                 self.reject("%s: found %d chunks, expected 3." % (self.filename, len(self.chunks)))
         if self.chunks[0] != "debian-binary":