Skip to content

Commit

Permalink
Merge pull request xbmc#8580 from MartijnKaijser/fix_addon_download_path
Browse files Browse the repository at this point in the history
[addons] fix download location for multi directory repositories
  • Loading branch information
MartijnKaijser committed Dec 13, 2015
2 parents 9e229a3 + 065f8e6 commit a724f29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/addons/Repository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a724f29

Please sign in to comment.