Allow update to only Eden?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Eldorado Offline
Fan
Posts: 509
Joined: May 2009
Reputation: 14
Post: #1
I'm trying to restrict an addon update to only Eden users, I must be missing something as so far anything I've added to my addon.xml hasn't stopped Dharma users from installing

At first I was assuming that setting Python to 2.0 would have done it, but no luck there

Is there anything else I can do?

Here's what we have in the requires section:

Code:
<requires>
        <import addon="xbmc.python" version="2.0"/>
        <import addon="script.module.simplejson" version="2.0.10"/>
        <import addon="script.module.elementtree" version="1.2.7"/>
        <import addon="script.module.metahandler" version="0.0.1"/>
        <import addon="script.module.t0mm0.common" version="0.0.1"/>
        <import addon="script.common.plugin.cache" version="0.9.0"/>
    </requires>
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #2
dharma does not have proper python version import handling, this will work for eden+.

also this is precisely why we opted for separate official repos.
find quote
Martijn Offline
Team-XBMC
Posts: 10,304
Joined: Jul 2011
Reputation: 154
Location: Dawn of time
Post: #3
You Could try adding a common used module that is only used in the eden repo (even if you don't actualy use it).
This way they get dependancy not met.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
Eldorado Offline
Fan
Posts: 509
Joined: May 2009
Reputation: 14
Post: #4
I was assuming common cache was Eden only?
find quote
Martijn Offline
Team-XBMC
Posts: 10,304
Joined: Jul 2011
Reputation: 154
Location: Dawn of time
Post: #5
Eldorado Wrote:I was assuming common cache was Eden only?

hmm indeed.
Maybe this only works on Eden+ the dependencies not met?
I thought it also worked on Dhama

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
Eldorado Offline
Fan
Posts: 509
Joined: May 2009
Reputation: 14
Post: #6
Martijn Wrote:hmm indeed.
Maybe this only works on Eden+ the dependencies not met?
I thought it also worked on Dhama

We had one user who was able to install an update after we put in common cache as a required.. and of course got a script error on the import

It's odd since I had other addons that showed as 'Broken' due to missing dependencies

I'm going to try again soon, install 10.1 and see what happens!
find quote
Eldorado Offline
Fan
Posts: 509
Joined: May 2009
Reputation: 14
Post: #7
Just bringing this one back as I've been testing this more and it doesn't seem I can stop an addon from updating in Dharma, even if dependencies are not available

Is this just due to Dharma not being able to check properly?

My addon.xml has this:
Code:
<requires>
        <import addon="xbmc.python" version="2.0"/>
        <import addon="script.module.simplejson"/>
        <import addon="script.module.elementtree"/>
        <import addon="script.module.beautifulsoup"/>
        <import addon="script.module.metahandler" version="0.0.1"/>
        <import addon="script.module.t0mm0.common" version="1.1.0"/>
        <import addon="script.common.plugin.cache" version="0.9.0"/>
    </requires>

I removed everything, installed XBMC 10.1 and installed the current release of my addon.. no problems

I then install the repository where we are developing the Eden version with the above addon.xml

The addon updates without checking it's dependencies and of course fails when trying to run due to not being able to find the common cache script

Also noting I set 'script.module.t0mm0.common' to version 1.1.0 which is the Eden version, I checked and it download the Dharm version 1.0.0

Is there anything else I can do?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 25,689
Joined: Oct 2003
Reputation: 169
Post: #8
Correct. As spiff said "dharma does not have proper python version import handling, this will work for eden+."

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Eldorado Offline
Fan
Posts: 509
Joined: May 2009
Reputation: 14
Post: #9
jmarshall Wrote:Correct. As spiff said "dharma does not have proper python version import handling, this will work for eden+."

Ah.. I was taking that as meaning it only applied to setting python=2.0

Was hoping missing dependencies would stop it

thanks!
find quote