Fix the sanity check on number of query/verify sources (RhBug:691930)
authorPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Wed, 13 Jul 2011 10:56:15 +0000 (13:56 +0300)
committerPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Wed, 13 Jul 2011 10:56:15 +0000 (13:56 +0300)
- 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.

rpmqv.c

diff --git a/rpmqv.c b/rpmqv.c
index 7c7a772..4841cb8 100644 (file)
--- 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"));
     }