Ignore:
Timestamp:
22/05/07 18:10:10 (12 years ago)
Author:
selatham
Message:

various improvements

File:
1 edited

Legend:

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

    r2423 r2508  
    154154# Create/clear the directory for the 'out' namespace corrected copy of the discovery records. 
    155155if os.path.isdir("/usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery_corrected"): 
    156     commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/ | xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery_corrected/{\}" 
     156    commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery_corrected/ | xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery_corrected/{\}" 
    157157    print "Executing : " + commandline 
    158158    status = os.system(commandline) 
     
    193193                status = os.system(commandline) 
    194194                if status !=0: 
    195                     sys.exit("Failed at re-naming file stage") 
     195                    sys.exit("ERROR: Failed at re-naming file stage") 
    196196                numfilesproc += 1 
    197197        else: 
     
    209209                       SchemaNameSpace(in_filename, corrected_filename,datacentre_format) 
    210210                    except: 
    211                        print "SchemaNameSpace failed on file %s"%in_filename 
     211                       print "ERROR: SchemaNameSpace failed on file %s"%in_filename 
    212212 
    213213# ingest the datacentres records into eXist db (backups of exist happen nightly). 
     
    228228    status = os.system(commandline) 
    229229    if status !=0: 
    230         sys.exit("Failed at clearing out DIF2MOLES area.") 
     230        sys.exit("ERROR: Failed at clearing out DIF2MOLES area.") 
    231231 
    232232# Then run the minimum moles creator for each discovery record 
Note: See TracChangeset for help on using the changeset viewer.