Classes | Functions | Variables
generate-manifest Namespace Reference

Classes

class  ManifestBuilder
 
class  Product
 
class  ProductDepsReader
 

Functions

def main (argv)
 

Variables

tuple sl7_only_packages = ('caendigitizer','pqxx','epics','jsoncpp','redis','zmq')
 

Function Documentation

def generate-manifest.main (   argv)

Definition at line 115 of file generate-manifest.py.

115 def main(argv):
116  product_deps_file = 'product_deps'
117  manifest_file = 'manifest.txt'
118  qualifiers=None
119 
120  try:
121  opts, args = getopt.getopt(argv,"hp:m:q:",["product_deps=","manifest=","qualifiers="])
122  except getopt.GetoptError:
123  print('generate-manifest.py -p <product_deps> -p <manifest> -q <qualifiers>')
124  sys.exit(2)
125 
126  for opt, arg in opts:
127  if opt == '-h':
128  print('generate-manifest.py -p <product_deps> -m <manifest> -q <qualifiers>')
129  sys.exit()
130  elif opt in ("-p", "--product_deps"):
131  product_deps_file = arg
132  elif opt in ("-m", "--manifest"):
133  manifest_file = arg
134  elif opt in ("-q", "--qualifiers"):
135  qualifiers = arg
136 
137  builder = ManifestBuilder(product_deps_file,qualifiers)
138  manifest = builder.build_manifest()
139 
140  with open(manifest_file, mode='w') as f:
141  print(manifest.getvalue().strip(), file=f)
142 
int open(const char *, int)
Opens a file descriptor.

Variable Documentation

tuple generate-manifest.sl7_only_packages = ('caendigitizer','pqxx','epics','jsoncpp','redis','zmq')

Definition at line 5 of file generate-manifest.py.