Files
LibreELEC.tv/packages/mediacenter/xbmc/patches/12.2-cd71444/xbmc-990.26-keep-old-repo-content-if-update-fails.patch
Stephan Raue 6229af93a8 xbmc: update to xbmc-12.2-cd71444
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-09-28 17:48:29 +02:00

25 lines
868 B
Diff

From 6a4d9b842a29fa9b0c233517826baffe5caec0cb Mon Sep 17 00:00:00 2001
From: Stefan Saraev <stefan@saraev.ca>
Date: Wed, 11 Sep 2013 22:52:10 +0300
Subject: [PATCH] keep old repo content if update fails
---
xbmc/addons/Repository.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/xbmc/addons/Repository.cpp b/xbmc/addons/Repository.cpp
index 0958d47..77b1d9a 100644
--- a/xbmc/addons/Repository.cpp
+++ b/xbmc/addons/Repository.cpp
@@ -273,6 +273,7 @@ VECADDONS CRepositoryUpdateJob::GrabAddons(RepositoryPtr& repo)
{
CLog::Log(LOGERROR,"Repository %s returned no add-ons, listing may have failed",repo->Name().c_str());
reposum = checksum; // don't update the checksum
+ database.GetRepository(repo->ID(),addons); // keep old addons
}
database.AddRepository(repo->ID(),addons,reposum);
}
--
1.7.2.5