SVN Repo Installer Plugin

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #1
http://xbmc-addons.googlecode.com/svn/tr...0Installer

An enhanced version of the XBMC-Addons plugin.

uses repo.xml files to define basic structure of the svn. Currently just XBMC-Addons trunk and XBMC-Scripting trunk have xml files.

structure of the xml file
PHP Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<repo>
    <url>http://xbmc-scripting.googlecode.com/svn</url>
    <root>/trunk</root>
    <structure name="trunk" offset="-1" install="scripts\\" />
</repo> 

url is obvious
root is the main branch/trunk of the repo. remember the forward slash
structure:
name is the root of the scripts/plugins/skins
offset is the position it's at
install is needed if the repo's structure is not set correctly. remember the trailer double forward slashes

heres the addons, no install needed since tghe structure is correct.
PHP Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<repo>
    <url>http://xbmc-addons.googlecode.com/svn</url>
    <root>/trunk</root>
    <structure name="plugins" offset="-2" install="" />
    <structure name="scripts" offset="-1" install="" />
    <structure name="skin" offset="-1" install="" />
</repo> 

just add yours in resources\repositories\{your name}\repo.xml

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,054
Joined: Sep 2004
Reputation: 146
Post: #2
Hey Nuka1195,

Thanks for explaining the XML format, I started my own source repository and I was going to write a repo.xml and give it to people.

Can you please explain the new attributes used in the latest version of your plugin.

Code:
<structure name="plugins" [b]noffset[/b]="-2" install="" [b]ioffset[/b]="2" [b]voffset[/b]="0" />

Thanks,
Dan
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #3
probably not Smile i add them as i need them, then forget what they do. can you just structure your svn the same Tongue but i will try.

i think

take amtii
trunk/plugins/video/amtii

name: the folder to match, to know where the item starts
noffset: is what position in the url it is so -2 means two from the right
install: install in specific folder (needed for xbmc-scripting, since they are not under a scripts folder)
ioffset: not sure, they all appear to be 2

voffset: is for the tags repo where you have
tags/plugins/video/amtii/1.2

this is a temporary installer or was suppose to be. easiest thing to do is format your svn to match the addons svn and use that repo. or even easier is become a member of xbmc-addons. Smile

sorry i couldn't help more. at the time i know they where needed for the diff formatted svn's, but really don't recall exactly why i did it that way.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Dan Dare Offline
http://www.xbmc4xbox.org
Posts: 1,054
Joined: Sep 2004
Reputation: 146
Post: #4
No worries Nuka, thanks for replying :-)

I tried a few combinations, until I found the one that worked Big Grin

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<repo>
    <url>http://dandar3-xbmc-addons.googlecode.com/svn</url>
    <root>/trunk</root>
    <structure name="plugins" noffset="-2" install="" ioffset="2" voffset="0" />
</repo>

I don't know about how temporary this is, but for now it helps, especially after xbmcscripts went down and people starting their own Google Code repositories. Hope XBMC.org will start hosting scripts/plugins soon...
find quote
coda Offline
Junior Member
Posts: 6
Joined: Mar 2009
Reputation: 0
Post: #5
Excuse me guys, I'm trying the SVN Repo Installer under linux..
I've put it into plugins/programs, and I can see the list of available plugins, but when I try to install any of them, first I see an error message that closes itself too fast, and then an error saying "There was an error installing item!"

Could you please help me fix this?

Thanks in advance!!
Coda.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #6
pastebin a debug log

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
coda Offline
Junior Member
Posts: 6
Joined: Mar 2009
Reputation: 0
Post: #7
Thanks Nuka for your prompt response!
Is this what you mean? http://pastebin.com/m481a89b4

Thanks again in advance!!
find quote
nicoli_k Offline
Team-XBMC Forum Moderator
Posts: 659
Joined: May 2008
Reputation: 0
Location: USA
Post: #8
coda Wrote:Thanks Nuka for your prompt response!
Is this what you mean? http://pastebin.com/m481a89b4

Thanks again in advance!!

you've got an old XBMC build :
"Starting XBMC, Platform: GNU/Linux. Built on Nov 14 2008 (SVN:16164)"

you should update it and try again. November of 2008 is ancient in terms of XBMC builds.
find quote
coda Offline
Junior Member
Posts: 6
Joined: Mar 2009
Reputation: 0
Post: #9
Sorry, I've posted a wrong logfile (it's the same version, but it's not showing the error)

I've uploaded it to http://www.coda.com.ar/mythtv-xbmc.log

Thanks again!
Coda.
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,703
Joined: May 2004
Reputation: 12
Post: #10
That doesn't make a november build any less ancient Tongue
find quote
Post Reply