aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/addons/Repository.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/addons/Repository.cpp b/xbmc/addons/Repository.cpp
index 2bcb414cf4..1a4be8ee64 100644
--- a/xbmc/addons/Repository.cpp
+++ b/xbmc/addons/Repository.cpp
@@ -366,12 +366,14 @@ CRepositoryUpdateJob::FetchStatus CRepositoryUpdateJob::FetchIfChanged(const std
if (ShouldCancel(m_repo->m_dirs.size() + std::distance(m_repo->m_dirs.cbegin(), it), total))
return STATUS_ERROR;
- if (!CRepository::Parse(*it, addons))
+ VECADDONS tmp;
+ if (!CRepository::Parse(*it, tmp))
{
CLog::Log(LOGERROR, "CRepositoryUpdateJob[%s] failed to read or parse "
"directory '%s'", m_repo->ID().c_str(), it->info.c_str());
return STATUS_ERROR;
}
+ addons.insert(addons.end(), tmp.begin(), tmp.end());
}
SetProgress(total, total);