Ignore:
Timestamp:
12/27/12 07:47:14 (12 years ago)
Author:
nanardon
Message:

Merge branch 'sync_cleanup'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/SyncManager.pm

    r1135 r1198  
    3737    }; 
    3838 
    39     if ( !grep { 
    40         lc($ini->val($_, 'type', '')) eq 'basessynchro' 
    41         } $ini->Sections ) { 
    42         $ini->newval('_basesync', 'type', 'basessynchro'); 
     39    foreach my $section (qw(basessynchro refreshexpired automatedrequest)) { 
     40        if ( !grep { 
     41            lc($ini->val($_, 'type', '')) eq $section 
     42            } $ini->Sections ) { 
     43            $ini->newval("_$section", 'type', $section); 
     44        } 
    4345    } 
    44     if ( !grep { 
    45         lc($ini->val($_, 'type', '')) eq 'refreshexpired' 
    46         } $ini->Sections ) { 
    47         $ini->newval('_refreshexpired', 'type', 'refreshexpired'); 
    48     } 
    49  
    50     $ini->newval('_automatedrequest', 'type', 'automatedrequest'); 
    5146 
    5247    bless { 
Note: See TracChangeset for help on using the changeset viewer.