aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-20 19:14:59 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-20 19:14:59 +0000
commitdd1e06bc7f78447d128a7864e72d2700160043fb (patch)
tree5983d2bf18a991f5c0bb98cffe0bee3868cdd282
parent6ad48fd7d66ea4c6ce2d805f35749ae08d1060de (diff)
downloadpaludis-dd1e06bc7f78447d128a7864e72d2700160043fb.tar.gz
paludis-dd1e06bc7f78447d128a7864e72d2700160043fb.tar.xz
Don't increment success multiple times for one total
-rw-r--r--src/clients/appareo/appareo.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/clients/appareo/appareo.cc b/src/clients/appareo/appareo.cc
index 7725546..3221042 100644
--- a/src/clients/appareo/appareo.cc
+++ b/src/clients/appareo/appareo.cc
@@ -123,6 +123,7 @@ namespace
}
catch (const ActionFailedError & e)
{
+ bool incremented_success(false);
for (Sequence<FetchActionFailure>::ConstIterator f(failures->begin()),
f_end(failures->end()) ;
f != f_end ; ++f)
@@ -141,7 +142,11 @@ namespace
if (! f->failed_integrity_checks().empty())
{
if (CommandLine::get_instance()->a_override.specified())
- ++success;
+ {
+ if (! incremented_success)
+ ++success;
+ incremented_success = true;
+ }
else
{
no_conflict_with_manifest = false;