- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (2 props)
-
ippTools/src/regtool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippTools/src
- Property svn:ignore
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20110710/ippTools/src (added) merged: 32337 /branches/eam_branches/ipp-20110906/ippTools/src (added) merged: 32630 /branches/eam_branches/ipp-20111110/ippTools/src (added) merged: 32694 /branches/haf_add201112/ippTools/src (added) merged: 32980,32986,33003,33023,33027
-
branches/meh_branches/ppstack_test/ippTools/src/regtool.c
r31938 r33415 268 268 } 269 269 } 270 char *is_stareim = strchr(psMetadataLookupStr(NULL,row,"exp_name"),'a'); 271 if (is_stareim) { 272 continue; 273 } 270 274 271 275 if ((psMetadataLookupS32(NULL,row,"is_downloaded") != 1)|| … … 386 390 } 387 391 } 392 char *is_stareim = strchr(psMetadataLookupStr(NULL,row,"exp_name"),'a'); 393 if (is_stareim) { 394 continue; 395 } 396 388 397 389 398 bool status = false; … … 882 891 PXOPT_LOOKUP_STR(set_md5sum, config->args, "-set_md5sum", false, false); 883 892 PXOPT_LOOKUP_STR(set_state, config->args, "-set_state", false, false); 893 PXOPT_LOOKUP_BOOL(set_ignored, config->args, "-set_ignored", false); 894 PXOPT_LOOKUP_BOOL(clear_ignored, config->args, "-clear_ignored", false); 884 895 PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false); 885 896 886 if ((fault == INT16_MAX) && (burntool_state == INT16_MAX) && !set_state ) {887 psError(PS_ERR_UNKNOWN, false, " one of -fault or -burntool_stateor -set_state must be selected");897 if ((fault == INT16_MAX) && (burntool_state == INT16_MAX) && !set_state && !set_ignored && !clear_ignored) { 898 psError(PS_ERR_UNKNOWN, false, "at least one of -fault or -burntool_state -set_ignored -clear_ignored or -set_state must be selected"); 888 899 return false; 889 900 } 890 901 if ((fault != INT16_MAX) && (burntool_state != INT16_MAX)) { 891 902 psError(PS_ERR_UNKNOWN, false, "only one of -fault or -burntool_state must be selected"); 903 return false; 904 } 905 if (set_ignored && clear_ignored) { 906 psError(PS_ERR_UNKNOWN, true, "only one of -set_ignored or -clear_ignored may be selected"); 892 907 return false; 893 908 } … … 898 913 899 914 if (fault != INT16_MAX) { 900 // this is fairly dangerous : can set all if the where is not set... 915 // this is fairly dangerous : can set all if the where is not set... but since exp_id and class_id 916 // were required above this is safe 901 917 if (!pxSetFaultCode(config->dbh, "rawImfile", where, fault, 0)) { 902 918 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); … … 930 946 } 931 947 psStringAppend(&setvalues,"rawImfile.data_state = '%s'",set_state); 948 } 949 if (set_ignored) { 950 if (setvalues) { 951 psStringAppend(&setvalues,","); 952 } 953 psStringAppend(&setvalues,"rawImfile.ignored = 1"); 954 } 955 if (clear_ignored) { 956 if (setvalues) { 957 psStringAppend(&setvalues,","); 958 } 959 psStringAppend(&setvalues,"rawImfile.ignored = 0"); 932 960 } 933 961 if (hostname) {
Note:
See TracChangeset
for help on using the changeset viewer.
