IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 28, 2006, 5:25:54 PM (20 years ago)
Author:
jhoblitt
Message:

require ippdb 0.0.38
the "big" exp_id -> exp_tag conversion

File:
1 edited

Legend:

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

    r9028 r9057  
    5252    bool status = false;
    5353
     54    psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag");
     55    if (!status) {
     56        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag");
     57        return false;
     58    }
     59    if (!exp_tag) {
     60        psError(PS_ERR_UNKNOWN, true, "-exp_tag is required");
     61        return false;
     62    }
    5463    psString exp_id = psMetadataLookupStr(&status, config->args, "-exp_id");
    5564    if (!status) {
     
    98107    }
    99108
    100     if (!newExpInsert(config->dbh, exp_id, camera, telescope, exp_type, imfiles)) {
     109    if (!newExpInsert(config->dbh, exp_tag, exp_id, camera, telescope, exp_type, imfiles)) {
    101110        psError(PS_ERR_UNKNOWN, false, "database error");
    102111        return false;
     
    110119    bool status = false;
    111120
    112     psString exp_id = psMetadataLookupStr(&status, config->args, "-exp_id");
     121    psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag");
    113122    if (!status) {
    114         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_id");
     123        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag");
    115124        return false;
    116125    }
    117     if (!exp_id) {
    118         psError(PS_ERR_UNKNOWN, true, "-exp_id is required");
     126    if (!exp_tag) {
     127        psError(PS_ERR_UNKNOWN, true, "-exp_tag is required");
    119128        return false;
    120129    }
     
    147156    }
    148157
    149     if (!newImfileInsert(config->dbh, exp_id, class, class_id, uri)) {
     158    if (!newImfileInsert(config->dbh, exp_tag, class, class_id, uri)) {
    150159        psError(PS_ERR_UNKNOWN, false, "database error");
    151160        return false;
Note: See TracChangeset for help on using the changeset viewer.