summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <Panu Matilainen pmatilai@redhat.com>2011-07-13 13:56:15 +0300
committerPanu Matilainen <Panu Matilainen pmatilai@redhat.com>2011-07-13 13:56:15 +0300
commit306c23ee49c0e385a830d206389c5e36128b9916 (patch)
tree57af155701abf3de6385a04600c8789dc71f2124
parentbbf85d4d4fe692030de0b39f4c289da0434a9890 (diff)
downloadrpm-306c23ee49c0e385a830d206389c5e36128b9916.tar.gz
rpm-306c23ee49c0e385a830d206389c5e36128b9916.tar.bz2
rpm-306c23ee49c0e385a830d206389c5e36128b9916.zip
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.
-rw-r--r--rpmqv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 7c7a77280..4841cb877 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"));
}