Thread: mbarcode
View Single Post
Posts: 252 | Thanked: 252 times | Joined on Nov 2009
#246
Actually, the first lines of most install files contain exactly the package name and the repository name. If we take Personal IP Address as an example:

The install file contains this:
Code:
[install]
catalogues = extras
package = personal-ip-address

[extras]
name = Maemo Extras
uri = http://repository.maemo.org/extras/
components = free non-free
We could make probably cut the install file down to this:
Code:
[install]
catalogues = extras
package = personal-ip-address
And make it so that when the catalogue is not defined, the application tries to fill in the missing info for a set of known catalogues (extras, extras-testing, extras-devel etc.) and then uses the install file as always.

This minimal install file format is almost the same size as the URL to the file.

The URL is encoded like this:


While the "minimal" install file is like this:


Doing it the "Android way" is by far the most efficient method. This is
Code:
install://extras;personal-ip-address
in QR Code:

I'm not sure if we should bring in a new format just to make the size smaller? Or to create a special URI? Reusing the data from the install file is maybe easier to make it work with the downloads section.

Using the web interface from Kaywa is quite easy by the way, and is probably a good start until someone creates a tool specifically for Maemo.

@thp: If you want to do that, please feel free to have a look at the qr-plugin source code. I think the easiest way to do what you want is to implement (patch) it into the qr-plugin rather than making a new one
 

The Following User Says Thank You to dragly For This Useful Post: