From: Panu Matilainen Date: Wed, 13 Jul 2011 10:56:15 +0000 (+0300) Subject: Fix the sanity check on number of query/verify sources (RhBug:691930) X-Git-Tag: tznext/4.11.0.1.tizen20130304~946 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=306c23ee49c0e385a830d206389c5e36128b9916;p=tools%2Flibrpm-tizen.git Fix the sanity check on number of query/verify sources (RhBug:691930) - Prior to commit 2e672f3fae9d8ff7ee64ae13cfa2fe65272c2ede, the callback would get called twice for every option so the expected number of query/verify sources was doubled. Now the numbers match with reality, adjust the check. --- diff --git a/rpmqv.c b/rpmqv.c index 7c7a772..4841cb8 100644 --- a/rpmqv.c +++ b/rpmqv.c @@ -117,7 +117,7 @@ int main(int argc, char *argv[]) } if (qva->qva_sourceCount) { - if (qva->qva_sourceCount > 2) + if (qva->qva_sourceCount > 1) argerror(_("one type of query/verify may be performed at a " "time")); }