diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-19 16:50:58 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-19 16:50:58 +0200 |
commit | 6b1ce53ae108d6581861237864d74747099d5cb1 (patch) | |
tree | 011be788ddebaaa3c89231ee7cb8ffa6340a2bcf /lib/query.c | |
parent | 047f4ea669d4565fc579075806cb194266b4d67b (diff) | |
download | librpm-tizen-6b1ce53ae108d6581861237864d74747099d5cb1.tar.gz librpm-tizen-6b1ce53ae108d6581861237864d74747099d5cb1.tar.bz2 librpm-tizen-6b1ce53ae108d6581861237864d74747099d5cb1.zip |
Lose the hidden and useless transaction add/order through rpmgi hackery
Diffstat (limited to 'lib/query.c')
-rw-r--r-- | lib/query.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/query.c b/lib/query.c index 1f52da493..1d4d69745 100644 --- a/lib/query.c +++ b/lib/query.c @@ -532,22 +532,13 @@ int rpmQueryVerify(QVA_t qva, rpmts ts, const char * arg) static int rpmcliArgIterHelper(rpmts ts, QVA_t qva, rpmTag tag, ARGV_const_t argv, rpmgiFlags gFlgs) { - rpmRC rpmrc = RPMRC_NOTFOUND; int ec = 0; qva->qva_gi = rpmgiNew(ts, tag, NULL, 0); rpmgiSetArgs(qva->qva_gi, argv, ftsOpts, gFlgs); - if (qva->qva_gi != NULL && (rpmgiGetFlags(qva->qva_gi) & RPMGI_TSADD)) /* Load the ts with headers. */ - while ((rpmrc = rpmgiNext(qva->qva_gi)) == RPMRC_OK) - {}; - if (rpmrc != RPMRC_NOTFOUND) { - qva->qva_gi = rpmgiFree(qva->qva_gi); - return 1; /* XXX should be no. of failures. */ - } /* FIX: argv can be NULL, cast to pass argv array */ ec = rpmQueryVerify(qva, ts, (tag == RPMDBI_PACKAGES)? (const char *) argv : NULL); - rpmtsEmpty(ts); qva->qva_gi = rpmgiFree(qva->qva_gi); return ec; } @@ -577,7 +568,6 @@ int rpmcliArgIter(rpmts ts, QVA_t qva, ARGV_const_t argv) (giFlags | (RPMGI_NOGLOB|RPMGI_NOHEADER))); while (rpmgiNext(qva->qva_gi) == RPMRC_OK) { ec += rpmQueryVerify(qva, ts, rpmgiHdrPath(qva->qva_gi)); - rpmtsEmpty(ts); } qva->qva_gi = rpmgiFree(qva->qva_gi); break; |