Changeset 35358 for trunk/ippTools/src/releasetool.c
- Timestamp:
- Apr 4, 2013, 11:26:25 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/releasetool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/releasetool.c
r35297 r35358 832 832 PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false); 833 833 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 834 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 834 835 835 836 // find the parameters of all the exposures that we want to add to the release … … 852 853 853 854 psFree(where); 855 856 if (limit) { 857 psString limitString = psDBGenerateLimitSQL(limit); 858 psStringAppend(&query, " %s", limitString); 859 psFree(limitString); 860 } 854 861 855 862 if (!p_psDBRunQuery(config->dbh, query)) { … … 1331 1338 PS_ASSERT_PTR_NON_NULL(config, false); 1332 1339 1333 PXOPT_LOOKUP_S32(group_id, config->args, "-group_id", true, false); 1340 PXOPT_LOOKUP_S32(group_id, config->args, "-group_id", false, false); 1341 PXOPT_LOOKUP_STR(group_name, config->args, "-group_name", false, false); 1342 if (!group_id && !group_name) { 1343 psError(PXTOOLS_ERR_CONFIG, true, "either group_id or group_name is required\n"); 1344 return false; 1345 } 1334 1346 1335 1347 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); … … 1352 1364 1353 1365 PXOPT_COPY_S64(config->args, where, "-group_id", "relGroup.group_id", "=="); 1366 PXOPT_COPY_STR(config->args, where, "-group_name", "relGroup.group_name", "=="); 1354 1367 // XXX TODO if label is enabled (for changing label or state for a block) we should 1355 1368 // disallow setting some parameters such as exp_list_path
Note:
See TracChangeset
for help on using the changeset viewer.
