- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/receivetool.c (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ippTools/src
- Property svn:ignore
-
old new 1 *.la 2 *.lo 1 3 .deps 2 4 .gdb_history … … 4 6 Makefile 5 7 Makefile.in 8 addtool 9 caltool 10 camtool 11 chiptool 6 12 config.h 7 13 config.h.in 8 stamp-h1 9 *.la 10 *.lo 14 detselect 15 dettool 16 difftool 17 disttool 18 dqstatstool 19 faketool 20 flatcorr 21 guidetool 22 magicdstool 23 magictool 24 pstamptool 25 pubtool 26 pxadmin 27 pxdata.c 28 pxinject 11 29 pxtoolsErrorCodes.c 12 30 pxtoolsErrorCodes.h 13 pxadmin14 pxinject15 pztool16 31 pzgetexp 17 32 pzgetimfiles 33 pztool 34 receivetool 18 35 regtool 19 guidetool 20 chiptool 21 camtool 36 stacktool 37 stamp-h1 22 38 warptool 23 difftool24 stacktool25 faketool26 dettool27 detselect28 pxdata.c29 magictool30 magicdstool31 caltool32 flatcorr33 pstamptool34 disttool35 receivetool36 37 pubtool
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/ippTools/src/receivetool.c
r24784 r27840 105 105 // optional 106 106 PXOPT_LOOKUP_STR(comment, config->args, "-comment", false, false); 107 PXOPT_LOOKUP_STR(state, config->args, "-state", false, false); 107 108 PXOPT_LOOKUP_STR(last, config->args, "-last", false, false); 108 109 PXOPT_LOOKUP_STR(status_product, config->args, "-status_product", false, false); … … 110 111 PXOPT_LOOKUP_STR(ds_dbhost, config->args, "-ds_dbhost", false, false); 111 112 112 if (!receiveSourceInsert(config->dbh, 0, source, product, workdir, comment, last, status_product, ds_dbname, ds_dbhost)) {113 if (!receiveSourceInsert(config->dbh, 0, source, product, workdir, state, comment, last, status_product, ds_dbname, ds_dbhost)) { 113 114 psError(PS_ERR_UNKNOWN, false, "Database error"); 114 115 return false; … … 135 136 psString query = pxDataGet("receivetool_list.sql"); 136 137 if (!query) { 137 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");138 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 138 139 psFree(where); 139 140 return false; … … 142 143 if (psListLength(where->list)) { 143 144 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 144 psStringAppend(&query, " WHERE%s", whereClause);145 psStringAppend(&query, " AND %s", whereClause); 145 146 psFree(whereClause); 146 147 } … … 194 195 psString query = pxDataGet("receivetool_addfileset.sql"); 195 196 if (!query) { 196 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");197 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 197 198 return false; 198 199 } … … 301 302 psString query = pxDataGet("receivetool_pendingfileset.sql"); 302 303 if (!query) { 303 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");304 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 304 305 psFree(where); 305 306 return false; … … 380 381 psString file_type = psMetadataLookupStr(NULL, md, "file_type"); 381 382 psString component = psMetadataLookupStr(NULL, md, "component"); 382 383 383 384 if (!file) { 384 385 psError(PS_ERR_UNKNOWN, false, "failed to find value for file"); … … 430 431 psString query = pxDataGet("receivetool_pendingfile.sql"); 431 432 if (!query) { 432 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");433 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 433 434 psFree(where); 434 435 return false; … … 513 514 psString query = pxDataGet("receivetool_revert.sql"); 514 515 if (!query) { 515 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");516 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 516 517 psFree(where); 517 518 return false; … … 546 547 psString query = pxDataGet("receivetool_toadvance.sql"); 547 548 if (!query) { 548 psError(PXTOOLS_ERR_ DATA, false, "Failed to retreive SQL statement");549 psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement"); 549 550 psFree(where); 550 551 return false; … … 612 613 psString query = NULL; // Query to execute 613 614 psStringAppend(&query, "UPDATE receiveFileset SET "); 614 615 615 616 psString sep = ""; 616 617 if (fault) { … … 630 631 sep = ","; 631 632 } 632 633 633 634 psStringAppend(&query, " WHERE fileset_id = %" PRId64, fileset_id); 634 635
Note:
See TracChangeset
for help on using the changeset viewer.
