Parcourir la source

[1866] corrected some regexp's: make sure it matches '.' before file suffixes.

JINMEI Tatuya il y a 12 ans
Parent
commit
9a7c7bf669
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/lib/dns/gen-rdatacode.py.in

+ 2 - 2
src/lib/dns/gen-rdatacode.py.in

@@ -198,11 +198,11 @@ def import_definitions(classcode2txt, typecode2txt, typeandclass):
                         if rdatadef_mtime < getmtime(file):
                             rdatadef_mtime = getmtime(file)
                         meta_types[type_txt] = type_code
-                    elif re.search('\cc$', file):
+                    elif re.search('\.cc$', file):
                         if rdatadef_mtime < getmtime(file):
                             rdatadef_mtime = getmtime(file)
                         class_definitions += import_classdef(class_txt, file)
-                    elif re.search('\h$', file):
+                    elif re.search('\.h$', file):
                         if rdatahdr_mtime < getmtime(file):
                             rdatahdr_mtime = getmtime(file)
                         rdata_declarations += import_classheader(class_txt,