Bugfix that prevented us from properly checking for duplicate entities
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Jul 2008 20:55:28 +0000 (20:55 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Jul 2008 20:55:28 +0000 (20:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10030 dcc99617-32d9-48b4-a31d-7c20da2025e4

build/i18n/tests/check_entities.py

index 784effc..d1634a3 100644 (file)
@@ -62,8 +62,6 @@ def parse_entities():
     prefix = os.path.commonprefix(dtd_files)
 
     for d_file in dtd_files:
-               if DEBUG:
-                       print "Checking %s\n" % (d_file)
 
         # Get the shortest unique address for this file
         short_df = d_file[len(prefix):]
@@ -105,7 +103,7 @@ def parse_entities():
                 continue
 
             for entry in entities[entity_key]:
-                if ['file'] == short_df:
+                if entry['file'] == short_df:
                     print("%s:%d: Duplicate key '%s' in line [%s]" % (short_df, line_num, entity_key, line[0:-1]))
                     continue