Changeset 42413
- Timestamp:
- Mar 15, 2023, 11:01:42 AM (3 years ago)
- Location:
- branches/eam_branches/ipp-20230313/ippTools/src
- Files:
-
- 2 edited
-
disttool.c (modified) (5 diffs)
-
disttoolConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/ippTools/src/disttool.c
r37130 r42413 765 765 } 766 766 767 if (simple) {/* no option? */}768 769 767 if (pretend) { 770 if (!ippdbPrintMetadatas(stdout, output, "distRunsToUpdate", true)) {768 if (!ippdbPrintMetadatas(stdout, output, "distRunsToUpdate", !simple)) { 771 769 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 772 770 psFree(output); … … 1652 1650 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); 1653 1651 PXOPT_LOOKUP_STR(comment, config->args, "-comment", false, false); 1652 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1654 1653 1655 1654 distTargetRow *row = distTargetRowAlloc( … … 1676 1675 row->target_id = psDBLastInsertID(config->dbh); 1677 1676 1678 if (!distTargetPrintObject(stdout, row, true)) {1677 if (!distTargetPrintObject(stdout, row, !simple)) { 1679 1678 psError(PS_ERR_UNKNOWN, false, "failed to print object"); 1680 1679 psFree(row); … … 1815 1814 PXOPT_LOOKUP_STR(last_fileset, config->args, "-last_fileset", false, false); 1816 1815 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); 1816 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1817 1817 1818 1818 // XXX: should we insure that these names do not contatin any whitespace? … … 1842 1842 row->dest_id = psDBLastInsertID(config->dbh); 1843 1843 1844 if (!rcDestinationPrintObject(stdout, row, true)) {1844 if (!rcDestinationPrintObject(stdout, row, !simple)) { 1845 1845 psError(PS_ERR_UNKNOWN, false, "failed to print object"); 1846 1846 psFree(row); -
branches/eam_branches/ipp-20230313/ippTools/src/disttoolConfig.c
r37130 r42413 275 275 psMetadataAddStr(definedestinationArgs, PS_LIST_TAIL, "-last_fileset",0, "define last_fileset", NULL); 276 276 psMetadataAddStr(definedestinationArgs, PS_LIST_TAIL, "-set_state", 0, "define state", NULL); 277 psMetadataAddBool(definedestinationArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false); 277 278 278 279 // -updatedestination … … 292 293 psMetadataAddStr(definetargetArgs, PS_LIST_TAIL, "-set_state", 0, "define state", NULL); 293 294 psMetadataAddStr(definetargetArgs, PS_LIST_TAIL, "-comment", 0, "define comment", NULL); 295 psMetadataAddBool(definetargetArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false); 294 296 295 297 // -updatetarget
Note:
See TracChangeset
for help on using the changeset viewer.
