summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-12-22 02:11:05 +0000
committerjbj <devnull@localhost>2002-12-22 02:11:05 +0000
commitb63b4a5d122e8dfb631c8fa75a9a7a92708080ec (patch)
tree83f213dc374fadf65b4c520e03bda0bc0ebf685b /rpmqv.c
parent1f6cdca2d549e02f3e65afa27b80cb852e283cd2 (diff)
downloadlibrpm-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-xrpmqv.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 608ca3d0e..ae2afa2f1 100755
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -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;