Discussion:
sugar-install-bundle fails to behave like Browse when installing .xol bundle
Adam Holt
2018-04-11 16:12:17 UTC
Permalink
Clicking on http://download.unleashkids.org/HaitiOS/bundles/livreshaiti.xol
works in Sugar's Browse activity on OLPC OS 13.2.9, correctly loading books
into Sugar.

However doing the same thing from the command-line ("sugar-install-bundle
livreshaiti.xol") does not work :/

Does anyone have any tricks/ideas to making this happen programmatically?


(Context: we're mostly doing XO-1.5 work at the moment, and our scripts
need to work post-deployment, as educators seek continuous improvement.)
James Cameron
2018-04-20 00:07:54 UTC
Permalink
Your bundle does not meet the requirements.

I've downloaded it, and sugar-install-bundle says what is wrong;

sugar3.bundle.bundle.MalformedBundleException: All files in the bundle
must be inside a single directory whose name ends with '.activity'

Sure enough, "unzip -l" shows the directory name does not end with
'.activity'.

$ unzip -l livr*
Archive: livreshaiti.xol
Length Date Time Name
--------- ---------- ----- ----
0 2013-12-15 13:58 livreshaiti/
935794 2013-12-15 13:14 livreshaiti/chita_pa_bay.pdf
345 2013-12-15 14:04 livreshaiti/index.html
0 2013-12-15 13:32 livreshaiti/library/
434 2008-03-24 11:04 livreshaiti/library/books.png
293 2013-12-15 14:02 livreshaiti/library/library.info
1286434 2013-12-15 13:15 livreshaiti/st_exupery_le_petit_prince.pdf
--------- -------
2223300 7 files
Post by Adam Holt
Clicking on http://download.unleashkids.org/HaitiOS/bundles/livreshaiti.xol
works in Sugar's Browse activity on OLPC OS 13.2.9, correctly loading books
into Sugar.
However doing the same thing from the command-line ("sugar-install-bundle
livreshaiti.xol") does not work :/
Does anyone have any tricks/ideas to making this happen programmatically?
(Context: we're mostly doing XO-1.5 work at the moment, and our scripts need to
work post-deployment, as educators seek continuous improvement.)
[1] http://download.unleashkids.org/HaitiOS/bundles/livreshaiti.xol
_______________________________________________
Devel mailing list
http://lists.laptop.org/listinfo/devel
--
James Cameron
http://quozl.netrek.org/
Loading...