diff options
author | Gerald Combs <gerald@wireshark.org> | 2007-04-05 22:42:34 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2007-04-05 22:42:34 +0000 |
commit | 90a9317e4eff401383ec95bed2837151fc44f352 (patch) | |
tree | 96b5c265f211eb0aff6584e6cd6beb2e7cab0be9 /tools/make-dissector-reg.py | |
parent | a031a39a314f53ca98f3f638457ef1d0a1cdf332 (diff) |
Loosen up our restrictions so that plugins can compile.
svn path=/trunk/; revision=21340
Diffstat (limited to 'tools/make-dissector-reg.py')
-rw-r--r-- | tools/make-dissector-reg.py | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/tools/make-dissector-reg.py b/tools/make-dissector-reg.py index 94e96fd852..442c2c075c 100644 --- a/tools/make-dissector-reg.py +++ b/tools/make-dissector-reg.py @@ -42,12 +42,6 @@ else: # files = sys.argv[3:] -# -# The minimum number of files, protocol registrations, and handoff -# registrations we should have. -# This is an arbitrary value. -min_object_count = 100 - # Create the proper list of filenames filenames = [] for file in files: @@ -56,8 +50,8 @@ for file in files: else: filenames.append("%s/%s" % (srcdir, file)) -if len(filenames) < min_object_count: - print "Too few files found: %d" % len(filenames) +if len(filenames) < 1: + print "No files found" sys.exit(1) @@ -98,11 +92,8 @@ for filename in filenames: file.close() # Make sure we actually processed something -if len(proto_reg) < min_object_count: - print "Too few protocol registrations found: %d" % len(proto_reg) - sys.exit(1) -if len(handoff_reg) < min_object_count: - print "Too few handoff registrations found: %d" % len(handoff_reg) +if len(proto_reg) < 1: + print "No protocol registrations found" sys.exit(1) # Sort the lists to make them pretty |