Posts: 3,956
Joined: Dec 2008
Reputation:
62
2011-05-11, 21:41
(This post was last modified: 2011-05-11, 22:05 by pecinko.)
I added my repo via install from zip. Afterwards I uninstalled it and added it again (same id) but this time repo location was different than previous one.
XBMC reported addon enabled. But, XBMC "found" old icon and repo data and showed them instead. I have even forced update from context menu and XBMC was still trying to fetch the data from previous location. Ones a friend always a friend?
Just deleted everything and did a fresh install in order to make it talk to a new repo location.
This is on MAC OSX don't know about other platforms.
Posts: 17,243
Joined: Aug 2007
Reputation:
566
Hitcher
Team-Kodi Member
Posts: 17,243
I think if try re-installing it'll actually use the old one stored in PACKAGES.
Posts: 17,243
Joined: Aug 2007
Reputation:
566
Hitcher
Team-Kodi Member
Posts: 17,243
Un-install still leaves the zip in packages and I think if you try installing the same zip it'll use the package version.
Posts: 15,261
Joined: Jan 2009
Reputation:
726
ronie
Team-Kodi Member
Posts: 15,261
did you bump the repo addon version?
Posts: 300
Joined: Mar 2008
Reputation:
14
I found issues with this in the past. Even plugins that have incremented version numbers (within addon.xml) were being disregared in favour of the cached one in packages.
My solution was to ensure that the version number was in the filename, which then didn;t match any cached version.
Strange to see it happen via a repo - I take it that the repo file format you are downloading is a zip? (as apposed to the individual source files)..
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Uninstalling an addon will keep it in packages, yes. Most other package managers work exactly the same way - it's to save you from redownloading if you need to reinstall it for some reason.
With that said, as long as the version is incremented, it should not load from a local package - reason is simple: We construct the local package name using addonid + version number, so as long as one or both don't match there won't be a local package.
If it's not working then we'll need a reproducible case so that we can see it for ourselves (and thus fix the issue).
Cheers,
Jonathan
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
My guess is the reason its loading the old one is the repo hasn't been refreshed in xbmc yet to tell it a new version exists
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Install from zip should ideally not touch the packages folder at all - it should certainly not touch the packages folder if the version has changed. If it's doing that, then I agree it needs fixing. My guess is it may not be as easy to fix as one would like though...
A way to reproduce is to download a zipped repo, install from zip, then uninstall, alter the version of the repo, and try and install again?
Cheers,
Jonathan