Page 1 of 1

pysvn

Posted: Tue Oct 28, 2014 4:08 pm
by byron
I've been trying to find a way to export an older version of a specific addon that is compatible with our software (not zipped in tags or release of the projects repo on googlecode). I'm not asking for help with that per se, but wondering if a Python SVN Extension would work on our platform.

Tools with the package: http://pysvn.stage.tigris.org/docs/pysvn_prog_ref.html

I spent much time and used various methods looking for a copy of script.module.pysvn

Code: Select all

<addon id="script.module.pysvn-2.4" name="PySVN Library" version="2.4.0"  provider-name="Barry A. Scott [ba...@barrys-emacs.org]">
    <requires>
        <import addon="xbmc.python" version="1.0"/>
    </requires>
    <extension point="xbmc.python.module" library="lib" />
    <extension point="xbmc.addon.metadata">
        <platform>all</platform>
    </extension>
</addon>
Obviously it exists but could not track it down...I guess I was wondering if any of the dev's (or anyone for that matter) had a copy of this to share or if it would even work here. There is very limited discussion of this module on the XBMC/Kodi community forum - or anywhere involving xbmc in general - and it no longer exists in any of their repositories (eden, frodo, gotham). The goal is to export a specific svn revision to either update an existing xbmc4xbox directory or simply snatch a functioning revision for our platform.

Also, it would appear that Nuka [xbmc-addons] was at least one person that must have been involved with the idea because the creation of script.module.pysvn dates back to when he was still helping the project (pretty sure but could be wrong)...just hoping someone else here might remember dealing with the idea I guess.

Re: pysvn

Posted: Wed Oct 29, 2014 8:09 pm
by Dan Dar3

Re: pysvn

Posted: Sat Nov 01, 2014 9:01 pm
by skatulskijean
@byron

Why you switch not to git (github) is a better option to day .
Most what was located on svn it's switched to git as exsample (main xbmc)

And with this you have more options.

When i think back on the time with python 2.4 i found the[removed] it used git on the addon self (i have not adapted the github code on the addon and have only commit out on the adapted addon self then it's uses requests and this was with python 2.4 not easy to emulate:
Anyway:

[edit -addon link removed - http://www.xbmc4xbox.org.uk/forum/viewt ... f=4&t=2820 - this includes linking to addons as code examples]

I hope this can help when you switch to git i have it not tested on xbmc4xbox but i think the test is a option for You.

https://github.com/jacquev6/PyGithub

short intruction:
http://jacquev6.github.io/PyGithub/v2/i ... troduction

cookebook http://jacquev6.github.io/PyGithub/v2/cookbook.html

EDIT 1:

When you only wants to recursiv download from svn like wget you can that do over a python script.

You can first read the skin.xml for the VersionNumber and point it out i mean 3.5.4.1 to 3541 as example variable i use inetversion
than read the Versions Number from the installed skin on the skin.xml and point it out the Version what installed is 3.5.4.0 poit it out to 3540

then you do it's like that:

Code: Select all

inetversion='3.5.4.2'
inetversion=inetversion.replace('.','')
instversion='3.5.4.1'
instversion=instversion.replace('.','')

#you can use re.sub for replace to

if inetversion > instversion:
	print 'new Version'
	print '-----------'
	print 'downloading and install new Version'

	
	
else:
	print 'no new version aviable'
	pass
but better where when you install the skin you storing the version and you must than only access one version this from inet so you can update the skin self only option is to use a other skin on this moment.or you use a autostart script what with the next run show what is on the Folder (this what you have downloaded switch to a other skin (i can not say its that on xbmc python working and install the new skinversion and switch back to the new installed skin.

a working solution for recursives downloading over python have i found


regards Jan