23 def pool_insert(files, catalog_name="xmlcatalog_file:PoolFileCatalog.xml
"): print (
":: inserting [%i] files into pool catalog... (%s)"%(
29 sc,exe = subprocess.getstatusoutput (
'which pool_insertFileToCatalog')
31 print (
":: could not find 'pool_insertFileToCatalog' !")
35 os.environ[
'POOL_CATALOG'] = catalog_name
36 cmd =
"%s %s" % (exe,
" ".
join(files))
37 sc, out = subprocess.getstatusoutput (cmd)
39 out = os.linesep.join(
40 [o
for o
in out.splitlines()
41 if not (o.startswith(
"Warning in <TClass::TClass>: no dictionary for class ")
or
42 o.startswith(
'Warning in <TEnvRec::ChangeValue>: duplicate entry'))]
46 print (
":: problem running pool_insertFileToCatalog:")
51 print (
":: inserting [%i] files into pool catalog... [done]"%len(files))