diff options
author | Thomas Amland <thomas.amland@gmail.com> | 2015-12-12 16:00:32 +0100 |
---|---|---|
committer | Martijn Kaijser <mcm.kaijser@gmail.com> | 2015-12-13 12:43:48 +0100 |
commit | 065f8e63a8ee639c974f737f35425e700219dd48 (patch) | |
tree | 7f0838d4a57cfcb30ce6e6616a1b771ff5177263 | |
parent | 9e229a3639fda46523b64c503512a07b02c9d486 (diff) |
[addons] fix download location for multi directory repositories
regression from cbc9920dd
-rw-r--r-- | xbmc/addons/Repository.cpp | 4 |
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); |