IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38741


Ignore:
Timestamp:
Sep 16, 2015, 7:45:38 AM (11 years ago)
Author:
eugene
Message:

pass the ignore-sorted-state option to dvoverify_client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvoverify_catalogs.c

    r38553 r38741  
    117117
    118118    // options / arguments that can affect relastro_client -update-objects:
    119     char command[DVO_MAX_PATH];
    120     snprintf (command, DVO_MAX_PATH, "dvoverify_client %s -results %s -hostID %d -hostdir %s -region %f %f %f %f",
    121               abscatdir, table->hosts[i].results, table->hosts[i].hostID, table->hosts[i].pathname,
    122               UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax
    123       );
     119    char *command = NULL;
     120    strextend (&command, "dvoverify_client %s -results %s -hostID %d -hostdir %s -region %f %f %f %f",
     121               abscatdir, table->hosts[i].results, table->hosts[i].hostID, table->hosts[i].pathname,
     122               UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
    124123
    125     char tmpline[DVO_MAX_PATH];
    126     if (VERBOSE)         { snprintf (tmpline, DVO_MAX_PATH, "%s -v", command); strcpy (command, tmpline); }
    127     if (CHECKSORTED)     { snprintf (tmpline, DVO_MAX_PATH, "%s -s", command); strcpy (command, tmpline); }
    128     if (!CHECK_IMAGE_ID) { snprintf (tmpline, DVO_MAX_PATH, "%s -skip-image-ids", command); strcpy (command, tmpline); }
    129     if (LIST_MISSING)    { snprintf (tmpline, DVO_MAX_PATH, "%s -list-missing", command); strcpy (command, tmpline); }
     124    if (VERBOSE)             { strextend (&command, "-v"); }
     125    if (CHECKSORTED)         { strextend (&command, "-s"); }
     126    if (IGNORE_SORTED_STATE) { strextend (&command, "-ignore-sorted-state"); }
     127    if (!CHECK_IMAGE_ID)     { strextend (&command, "-skip-image-ids"); }
     128    if (LIST_MISSING)        { strextend (&command, "-list-missing"); }
    130129
    131130    fprintf (stderr, "command: %s\n", command);
     
    150149    }
    151150  }
     151  free (command);
    152152
    153153  if (PARALLEL_MANUAL) {
Note: See TracChangeset for help on using the changeset viewer.