diff options
author | jbj <devnull@localhost> | 2002-12-22 02:11:05 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-12-22 02:11:05 +0000 |
commit | b63b4a5d122e8dfb631c8fa75a9a7a92708080ec (patch) | |
tree | 83f213dc374fadf65b4c520e03bda0bc0ebf685b /rpmqv.c | |
parent | 1f6cdca2d549e02f3e65afa27b80cb852e283cd2 (diff) | |
download | librpm-tizen-b63b4a5d122e8dfb631c8fa75a9a7a92708080ec.tar.gz librpm-tizen-b63b4a5d122e8dfb631c8fa75a9a7a92708080ec.tar.bz2 librpm-tizen-b63b4a5d122e8dfb631c8fa75a9a7a92708080ec.zip |
- simplify specfile query linkage loop.
- drill rpmts into parseSpec(), carrying Spec along.
CVS patchset: 5958
CVS date: 2002/12/22 02:11:05
Diffstat (limited to 'rpmqv.c')
-rwxr-xr-x | rpmqv.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -263,12 +263,6 @@ int main(int argc, const char ** argv) default: break; } - - /* XXX Eliminate query linkage loop */ - /*@-type@*/ /* FIX: casts? */ - parseSpecVec = parseSpec; - freeSpecVec = freeSpec; - /*@=type@*/ #endif #if defined(ENABLE_NLS) @@ -795,7 +789,11 @@ ia->probFilter |= RPMPROB_FILTER_OLDPACKAGE; case MODE_QUERY: if (qva->qva_source != RPMQV_ALL && !poptPeekArg(optCon)) argerror(_("no arguments given for query")); + + qva->qva_specQuery = rpmspecQuery; ec = rpmcliQuery(ts, qva, (const char **) poptGetArgs(optCon)); + qva->qva_specQuery = NULL; + /* XXX don't overflow single byte exit status */ if (ec > 255) ec = 255; break; |