diff options
author | jbj <devnull@localhost> | 2004-10-25 01:10:13 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-10-25 01:10:13 +0000 |
commit | 7c25d1ffaed9ab2e626db874150d17bbc6424cee (patch) | |
tree | 645d39710f0b26f139e4899bac393a9e32560929 /rpmqv.c | |
parent | 7138fa3bed4ef36fe94e2f6bdbac071685cbe86d (diff) | |
download | librpm-tizen-7c25d1ffaed9ab2e626db874150d17bbc6424cee.tar.gz librpm-tizen-7c25d1ffaed9ab2e626db874150d17bbc6424cee.tar.bz2 librpm-tizen-7c25d1ffaed9ab2e626db874150d17bbc6424cee.zip |
Add undocumented --hdlist and --ftswalk query/verify sources.
Bugs:
* @todo hdlist should use argv to open system hdlist path.
CVS patchset: 7508
CVS date: 2004/10/25 01:10:13
Diffstat (limited to 'rpmqv.c')
-rwxr-xr-x | rpmqv.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -782,7 +782,8 @@ ia->probFilter |= RPMPROB_FILTER_OLDPACKAGE; #ifdef IAM_RPMQV case MODE_QUERY: - if (qva->qva_source != RPMQV_ALL && !poptPeekArg(optCon)) + if (!poptPeekArg(optCon) + && !(qva->qva_source == RPMQV_ALL || qva->qva_source == RPMQV_HDLIST)) argerror(_("no arguments given for query")); qva->qva_specQuery = rpmspecQuery; @@ -796,7 +797,8 @@ ia->probFilter |= RPMPROB_FILTER_OLDPACKAGE; verifyFlags &= ~qva->qva_flags; qva->qva_flags = (rpmQueryFlags) verifyFlags; - if (qva->qva_source != RPMQV_ALL && !poptPeekArg(optCon)) + if (!poptPeekArg(optCon) + && !(qva->qva_source == RPMQV_ALL || qva->qva_source == RPMQV_HDLIST)) argerror(_("no arguments given for verify")); ec = rpmcliVerify(ts, qva, (const char **) poptGetArgs(optCon)); } break; |