On Tue, 2009-12-15 at 17:44 +0200, Marius Gedminas wrote:
> On Tue, Dec 15, 2009 at 04:37:23PM +0100, Alberto Garcia wrote:
> > On Tue, Dec 15, 2009 at 12:21:58PM +0100, Cornelius Hald wrote:
> > 
> > > While developing inside the SDK I used /etc/maemo_version (which is
> > > provided by the package maemo-version) to alter the runtime behavior
> > > of some scripts.
> > 
> > I think it's simpler to check the version of some installed packages
> > (using e.g. pkg-config)
> 
> And it's even better to check for the *features* you want, rather than
> the version of the software that has these features.

Thanks Frantisek, Alberto and Marius!

I think I will use the osso-product-info command as this seems to be the
"best" way for me to do it.

With the other solutions I have some problems:

* /etc/osso_software_version does not exist on my N900.

* pkg-config is only for *-dev packages and does not exist (by default)
on the N900.

* Checking for the feature is not possible, as the "feature" is a bug in
some preinstalled library and I don't know in which one.

I need this check because I need to figure out whether or not this bug
exists and if yes change a couple of files to work around it. So
checking for the OSSO_PRODUCT_RELEASE_VERSION with the osso-product-info
command should work for me.

Thanks for all the suggestions!
Conny


_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to