def get_pkg_srv_specs(package):
 types = list_srv_types(package, False)
 specs = []
 failures = []
 for t in types:
  try:
   spec = load_from_file(srv_file(package, t), package)
   specs.append(spec)
  except Exception as e:
   failures.append(t)
   sys.stderr.write(('ERROR: unable to load %s\n' % t))
 return (specs, failures)

def get_pkg_srv_specs ( package ) : types = list_srv_types ( package , False ) specs = [ ] failures = [ ] for t in types : try : spec = load_from_file ( srv_file ( package , t ) , package ) specs . append ( spec ) except Exception as e : failures . append ( t ) sys . stderr . write ( ( 'ERROR: unable to load %s\n' % t ) ) return ( specs , failures )
list all messages that a package contains .