IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2010, 2:43:56 PM (16 years ago)
Author:
bills
Message:

handle version checking in -importrun and -exportrun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/regtool.c

    r27388 r27536  
    15471547  }
    15481548
     1549  if (!pxExportVersion(config, f)) {
     1550    psError(PS_ERR_UNKNOWN, false, "failed to write dbversion to output file");
     1551    return false;
     1552  }
     1553
    15491554  psMetadata *where = psMetadataAlloc();
    15501555  PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "==");
     
    16161621
    16171622  psMetadata *input = psMetadataConfigRead (NULL, &nFail, infile, false);
     1623
     1624  if (!pxCheckImportVersion(config, input)) {
     1625    psError(PS_ERR_UNKNOWN, false, "pxCheckImportVersion failed");
     1626    return false;
     1627  }
     1628
    16181629
    16191630  fprintf (stdout, "---- input ----\n");
Note: See TracChangeset for help on using the changeset viewer.