Kodi Community Forum
Linux Create a repository ? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Linux Create a repository ? (/showthread.php?tid=157124)



Create a repository ? - schumi2004 - 2013-02-22

I followed this guide http://wiki.xbmc.org/index.php?title=HOW-TO:Create_a_Repository_to_host_your_Add-on to create my own repo that i can use in XBMC but for some reason the attached script doesn't work as expected.

What i did was creating a folder named repo, placed 2 test addons (unzipped) there and created a file named addons_xml_generator.py with content from wiki.
Made addons_xml_generator.py executable and ran it but it only returns errors on my Ubuntu VDI

Code:
12:08:53 ~/repo$ ./addons_xml_generator.py
./addons_xml_generator.py: line 23:  addons.xml generator : command not found
./addons_xml_generator.py: line 31: syntax error near unexpected token `('
./addons_xml_generator.py: line 31: `    def u(x):'
12:09:05 ~/repo$ ./addons_xml_generator.py
./addons_xml_generator.py: line 31: syntax error near unexpected token `('
./addons_xml_generator.py: line 31: `    def u(x):'
12:16:01 ~/repo$

It also creates 2 unknown files named os and sys but not the files i need.

Any help on getting this to work?


RE: Create a repository ? - sphere - 2013-02-22

the script was not detected as python script and the shell doesn't understand it.

Try executing it with "python addons_xml_generator.py" or put a correct python shebang in the first line, e.g. "#!/usr/bin/python"


RE: Create a repository ? - schumi2004 - 2013-02-22

Thanks, that fixed it.

When you say it like that i'm feeling stupid why i didn't think of that myself Wink


RE: Create a repository ? - sphere - 2013-02-22

you're welcome Wink