From 065f8e63a8ee639c974f737f35425e700219dd48 Mon Sep 17 00:00:00 2001 From: Thomas Amland Date: Sat, 12 Dec 2015 16:00:32 +0100 Subject: [addons] fix download location for multi directory repositories regression from cbc9920dd --- xbmc/addons/Repository.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3