summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-10-25 01:10:13 +0000
committerjbj <devnull@localhost>2004-10-25 01:10:13 +0000
commit7c25d1ffaed9ab2e626db874150d17bbc6424cee (patch)
tree645d39710f0b26f139e4899bac393a9e32560929 /rpmqv.c
parent7138fa3bed4ef36fe94e2f6bdbac071685cbe86d (diff)
downloadlibrpm-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-xrpmqv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 5077a66a3..7c5f457bb 100755
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -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;