Is still not matured. User or Imageproviders should do this manually.
btw. : input window for paths or url's is limited and can't handle long names.
Rework of input window is required.
checkUpdates() already gets the package list and the list of
upgradables, so it is unnecessary to do this again immediately
afterwards.
Signed-off-by: Thilo Graf <dbt@novatux.de>
"bad" packages will be ignored later anyway, so to speed things
up and save memory, do not even put them into the package list.
Signed-off-by: Thilo Graf <dbt@novatux.de>
In case of many packages, it can take a very long time to output the
matches of badpackage() on a serial console, so only print them if the
verbosity is increased and remove unnecessary information.
Signed-off-by: Thilo Graf <dbt@novatux.de>
Signed-off-by: Thilo Graf <dbt@novatux.de>
You're right but opkg gives not really usable size values and nothing
about dependencies. Solutions are welcome.
To detect bad packages, it must be existing a matching pattern list file.
Path is defined in OPKG_BAD_PATTERN_LIST_FILE.
This gives the option to filter some bad entries in the package listing menue.
NOTE: a sample file you should find here as : "/var/tuxbox/config/bad_package_pattern.list.sample".
If required, remove the ".sample" extension and change the entries for your requirements
To calculate the required size for installation here we make a quasi-dry run,
it is a bit awkward, but relatively specific, other solutions are welcome.
We create a temporary test directory and fill it with downloaded or user uploaded package file.
Then we unpack the package and change into temporary testing directory.
The required size results from the size of generated folders and subfolders.
TODO: size of dependencies are not really considered
Feeds are saved in opkg config file.
NOTE:Existing config file will be overwrite, so must be reconfigured
via gui.
Source names are strictly numbered src 0...10 (maximmal 10 at the moment)
FIXME: input mask in keyboardinput class is too small for some adresses, large
address names are cutted and makes entries useless
Show a success message only if restart/reboot is required and user
should decide what to do or not.
NOTE: marker file should be generated by opkg package itself
(eg. with preinstall scripts), so it's controlled by the package maintainer!
prepared for use as callback in shell window class, currently
it is not possible to get line output from shellwindow object, this
should help soon
also added ne locales