Ignore:
Timestamp:
28/04/06 14:51:03 (15 years ago)
Author:
selatham
Message:

bug fix to oai_ingest and updated pml and bodc config files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py

    r741 r863  
    4444for line in datacentre_config_file.readlines(): 
    4545    words  = string.split(line) 
     46    if len(words) == 0: 
     47        continue 
    4648    if words[0] == 'host_path': 
    4749        harvest_home = string.rstrip(words[1]) 
     
    5254datacentre_config_file.close() 
    5355 
    54 if not os.path.isfile(harvest_home + "/*"): 
     56if len( os.listdir(harvest_home)) == 0: 
    5557    print "Nothing to harvest this time from %s" %datacentre 
    5658    sys.exit() 
Note: See TracChangeset for help on using the changeset viewer.