Changeset 25676

Show
Ignore:
Timestamp:
25.05.2012 15:51:52 (7 years ago)
Author:
ak19
Message:

Added a check for activation having succeeded (where activation was necessary).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/activate.pl

    r25675 r25676  
    629629                    &print_msg("Activating collection $qualified_collection\n"); 
    630630                    &activate_collection($library_url, $gs_mode, $qualified_collection, $site); 
     631                     
     632                    # unless an error occurred, the collection should now be active: 
     633                    $collection_active = &ping_library_collection($library_url, $gs_mode, $qualified_collection, $site); 
     634                    if(!$collection_active) { 
     635                        &print_msg("ERROR: collection $qualified_collection did not get activated\n"); 
     636                    } 
    631637                    } 
    632638                } 
     
    637643        &print_msg("Building directory is not empty or still exists. Failed to properly move $build_dir to $index_dir.\n"); 
    638644    } 
     645 
     646    &print_msg("\n"); 
    639647} 
    640648