aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/xbmc.codec/addon.xml1
-rw-r--r--addons/xbmc.pvr/addon.xml1
-rw-r--r--xbmc/addons/Addon.cpp6
3 files changed, 2 insertions, 6 deletions
diff --git a/addons/xbmc.codec/addon.xml b/addons/xbmc.codec/addon.xml
index 849ade5216..8722f1f006 100644
--- a/addons/xbmc.codec/addon.xml
+++ b/addons/xbmc.codec/addon.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="xbmc.codec" version="1.0.1" provider-name="Team-Kodi">
+ <backwards-compatibility abi="1.0.1"/>
<requires>
<import addon="xbmc.core" version="0.1.0"/>
</requires>
diff --git a/addons/xbmc.pvr/addon.xml b/addons/xbmc.pvr/addon.xml
index aa99e9f4d3..2c5201f550 100644
--- a/addons/xbmc.pvr/addon.xml
+++ b/addons/xbmc.pvr/addon.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="xbmc.pvr" version="1.9.4" provider-name="Team-Kodi">
+ <backwards-compatibility abi="1.9.4"/>
<requires>
<import addon="xbmc.core" version="0.1.0"/>
</requires>
diff --git a/xbmc/addons/Addon.cpp b/xbmc/addons/Addon.cpp
index 7b43bc3538..4895b2b401 100644
--- a/xbmc/addons/Addon.cpp
+++ b/xbmc/addons/Addon.cpp
@@ -318,12 +318,6 @@ AddonPtr CAddon::Clone() const
bool CAddon::MeetsVersion(const AddonVersion &version) const
{
- // if the addon is one of xbmc's extension point definitions (addonid starts with "xbmc.")
- // and the minversion is "0.0.0" i.e. no <backwards-compatibility> tag has been specified
- // we need to assume that the current version is not backwards-compatible and therefore check against the actual version
- if (StringUtils::StartsWithNoCase(m_props.id, "xbmc.") && m_props.minversion.empty())
- return m_props.version == version;
-
return m_props.minversion <= version && version <= m_props.version;
}