- Timestamp:
- Dec 4, 2007, 12:32:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071130/Ohana/src/addstar/src/UpdateDatabase_Image.c
r15723 r15732 13 13 14 14 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 15 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_M EAS_META | LOAD_MISS | LOAD_SECF;15 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF; 16 16 17 17 // XXX this is probably not needed anymore … … 49 49 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 50 50 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 51 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_M EAS_META | LOAD_MISS | LOAD_SECF;51 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF; 52 52 53 53 // an error exit status here is a significant error … … 57 57 } 58 58 59 // Nave _disk == 0 implies an empty catalog file59 // Naves_disk == 0 implies an empty catalog file 60 60 // for only_match, skip empty catalogs 61 if ((catalog.Nave _disk == 0) && options[0].only_match) {61 if ((catalog.Naves_disk == 0) && options[0].only_match) { 62 62 dvo_catalog_unlock (&catalog); 63 63 dvo_catalog_free (&catalog); … … 73 73 if (!options[0].only_images) { 74 74 SetProtect (TRUE); 75 dvo_catalog_save (&catalog, VERBOSE); 75 if (options[0].update) { 76 dvo_catalog_update (&catalog, VERBOSE); 77 } else { 78 dvo_catalog_save (&catalog, VERBOSE); 79 } 76 80 SetProtect (FALSE); 77 81 }
Note:
See TracChangeset
for help on using the changeset viewer.
