diff options
author | spiff_ <spiff_@svn> | 2010-06-26 03:12:03 +0000 |
---|---|---|
committer | spiff_ <spiff_@svn> | 2010-06-26 03:12:03 +0000 |
commit | c8fdd537637d95007c71e21a992bd13f6bfbd3f3 (patch) | |
tree | f8d8a7bdffd08d07ce1db86849d586a64d4afbb6 | |
parent | f548ec1ec0557d52fe0911ded9432622df8d71be (diff) |
fixed: unmark addons as borken
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31408 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/addons/Repository.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xbmc/addons/Repository.cpp b/xbmc/addons/Repository.cpp index fb2b9b969c..8d26ec347b 100644 --- a/xbmc/addons/Repository.cpp +++ b/xbmc/addons/Repository.cpp @@ -155,6 +155,8 @@ bool CRepositoryUpdateJob::DoWork() return false; // check for updates + CAddonDatabase database; + database.Open(); for (unsigned int i=0;i<addons.size();++i) { AddonPtr addon; @@ -174,8 +176,6 @@ bool CRepositoryUpdateJob::DoWork() } if (addon && !addons[i]->Props().broken.IsEmpty()) { - CAddonDatabase database; - database.Open(); if (database.IsAddonBroken(addon->ID()).IsEmpty()) { if (CGUIDialogYesNo::ShowAndGetInput(addon->Name(), @@ -187,6 +187,8 @@ bool CRepositoryUpdateJob::DoWork() database.BreakAddon(addon->ID(),true,addons[i]->Props().broken); } } + if (addon && addons[i]->Props().broken.IsEmpty()) + database.BreakAddon(addon->ID(),false); } return true; |