![]() |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
There is :) - Qwerty's post stated - "osso-product-info -q OSSO_PRODUCT_RELEASE_VERSION" But i havn't tried using it :) At least it works :) |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
I was expecting that there is a method yyyy in module xxxx, which I could just call and get the version number. Like
version = yyyy.xxxx() I got qwerty12's trick to work with the following code. To me that still looks like calling a command line command from the python code :-) import os a = os.popen("osso-product-info -q OSSO_PRODUCT_RELEASE_VERSION") version = a.next() a.close() Hartti |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
AHhh good point - dont think there is an api/lib for everything yet :( - a few i have read looked great until i saw the line (FIX: Blah blah not working, needs to be added) Work in progress! - if you do find a better way, would be nice to know :D |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
anyone know a way to list all repo's and determine enabled v disabled?
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
let's wait for qwerty12 to answer :-)
Hartti |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Well.. this probably won't work and is certainly overly complicated.. but I don't know of a way to list repo's directly from apt. This makes use of tricks with find and grep, both of which are probably bastardized versions on the N900 and will probably not work.
Code:
#!/usr/bin/python |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Code:
apt-cache policy |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
| All times are GMT. The time now is 19:07. |
vBulletin® Version 3.8.8