Changeset 74 for LATMOS-Accounts/lib/LATMOS/Accounts/Synchro.pm
- Timestamp:
- 05/08/09 17:07:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Synchro.pm
r73 r74 137 137 } 138 138 } 139 my %srcexists = map { $_ => 1 } $self->from->list_objects($otype); 140 foreach (keys %exists) { 141 if (!$srcexists{$_}) { 142 warn "delete $otype $_\n"; 143 $destbase->delete_object($otype, $_); 144 } 145 } 139 146 } 140 147 } … … 178 185 my %delayed = map { $_ => 1 } $to->delayed_fields($otype); 179 186 foreach ($from->list_canonicals_fields($otype, 'r')) { 180 $delayed{$_} andnext;187 $delayed{$_} or next; 181 188 $fields{$_} ||= 0; # avoid 182 189 $fields{$_}++; 183 190 } 184 191 foreach ($to->list_canonicals_fields($otype, 'w')) { 185 $delayed{$_} andnext;192 $delayed{$_} or next; 186 193 $fields{$_} ||= 0; # avoid 187 194 $fields{$_}++;
Note: See TracChangeset
for help on using the changeset viewer.