Changeset 25766 for branches/eam_branches/20090820/ippTools/src/warptool.c
- Timestamp:
- Oct 2, 2009, 5:10:19 PM (17 years ago)
- Location:
- branches/eam_branches/20090820
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/warptool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090820
- Property svn:mergeinfo changed
-
branches/eam_branches/20090820/ippTools/src
- Property svn:ignore
-
old new 34 34 disttool 35 35 receivetool 36 36 addtool 37 37 pubtool
-
- Property svn:ignore
-
branches/eam_branches/20090820/ippTools/src/warptool.c
r24956 r25766 53 53 static bool tocleanedskyfileMode(pxConfig *config); 54 54 static bool topurgedskyfileMode(pxConfig *config); 55 static bool toscrubbedskyfileMode(pxConfig *config); 55 56 static bool tofullskyfileMode(pxConfig *config); 56 57 static bool updateskyfileMode(pxConfig *config); … … 102 103 MODECASE(WARPTOOL_MODE_TOCLEANEDSKYFILE, tocleanedskyfileMode); 103 104 MODECASE(WARPTOOL_MODE_TOPURGEDSKYFILE, topurgedskyfileMode); 105 MODECASE(WARPTOOL_MODE_TOSCRUBBEDSKYFILE, toscrubbedskyfileMode); 104 106 MODECASE(WARPTOOL_MODE_TOFULLSKYFILE, tofullskyfileMode); 105 107 MODECASE(WARPTOOL_MODE_UPDATESKYFILE, updateskyfileMode); … … 1196 1198 PXOPT_COPY_STR(config->args, where, "-exp_name", "rawExp.exp_name", "=="); 1197 1199 PXOPT_COPY_S64(config->args, where, "-fake_id", "fakeRun.fake_id", "=="); 1200 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawExp.dateobs", ">="); 1201 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "rawExp.dateobs", "<="); 1202 PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "=="); 1203 PXOPT_COPY_S64(config->args, where, "-magicked", "warpSkyfile.magicked", "=="); 1204 pxAddLabelSearchArgs (config, where, "-label", "warpRun.label", "LIKE"); 1205 1206 PXOPT_LOOKUP_U64(magicked, config->args, "-magicked", false, false); 1207 PXOPT_LOOKUP_BOOL(destreaked, config->args, "-destreaked", false); 1208 PXOPT_LOOKUP_BOOL(not_destreaked, config->args, "-not_destreaked", false); 1209 1210 PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); 1198 1211 1199 1212 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 1211 1224 psStringAppend(&query, " AND %s", whereClause); 1212 1225 psFree(whereClause); 1226 } else if (!all) { 1227 psError(PXTOOLS_ERR_DATA, true, "search parameters or -all are required"); 1228 return false; 1213 1229 } 1214 1230 psFree(where); 1231 1232 if (not_destreaked) { 1233 if (destreaked) { 1234 psError(PXTOOLS_ERR_DATA, true, "providing -not_destreaked and -destreaked makes no sense"); 1235 return false; 1236 } 1237 if (magicked) { 1238 psError(PXTOOLS_ERR_DATA, true, "providing -not_destreaked and -magicked makes no sense"); 1239 return false; 1240 } 1241 psStringAppend(&query, " AND warpSkyfile.magicked = 0"); 1242 } 1243 if (destreaked) { 1244 psStringAppend(&query, " AND warpSkyfile.magicked != 0"); 1245 } 1215 1246 1216 1247 // treat limit == 0 as "no limit" … … 1668 1699 return change_skyfile_data_state(config, "purged", "goto_purged"); 1669 1700 } 1701 static bool toscrubbedskyfileMode(pxConfig *config) 1702 { 1703 return change_skyfile_data_state(config, "scrubbed", "goto_scrubbed"); 1704 } 1670 1705 1671 1706 static bool updateskyfileMode(pxConfig *config)
Note:
See TracChangeset
for help on using the changeset viewer.
