Changeset 27542
- Timestamp:
- Mar 30, 2010, 8:10:49 PM (16 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
disttool.c (modified) (2 diffs)
-
disttoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/disttool.c
r27483 r27542 1673 1673 PXOPT_COPY_STR(config->args, where, "-dist_group", "dist_group", "LIKE"); 1674 1674 1675 PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false); 1676 PXOPT_LOOKUP_BOOL(full, config->args, "-full", false); 1677 if (full && clean) { 1678 psError(PS_ERR_UNKNOWN, true, "-full and -clean makes no sense, chose one or the other"); 1679 psFree(where); 1680 return false; 1681 } 1682 1683 1675 1684 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); 1676 1685 if (!state) { … … 1692 1701 } 1693 1702 psFree(where); 1703 1704 if (clean) { 1705 psStringAppend(&query, " AND distTarget.clean"); 1706 } else { 1707 psStringAppend(&query, " AND NOT distTarget.clean"); 1708 } 1694 1709 1695 1710 if (!p_psDBRunQueryF(config->dbh, query, state)) { -
trunk/ippTools/src/disttoolConfig.c
r27483 r27542 301 301 psMetadataAddStr(updateinterestArgs, PS_LIST_TAIL, "-dest_name", 0, "define destination name", NULL); 302 302 psMetadataAddStr(updateinterestArgs, PS_LIST_TAIL, "-dist_group", 0, "define distribution group", NULL); 303 psMetadataAddBool(updateinterestArgs, PS_LIST_TAIL,"-clean", 0, "update clean interests", false); 304 psMetadataAddBool(updateinterestArgs, PS_LIST_TAIL,"-full", 0, "update full interests", false); 303 305 304 306 // -listinterests
Note:
See TracChangeset
for help on using the changeset viewer.
