Commit Graph

8358 Commits

Author SHA1 Message Date
Thilo Graf
acdc74950a COPKGManager: use empty string as default parameter for full info 2015-12-28 12:13:48 +01:00
Thilo Graf
ed5bbdc540 CShellWindow/COPKGManager: handle some error from shell output
TODO: add missing handlers
2015-12-28 12:13:48 +01:00
Thilo Graf
982fbb962e CShellWindow: use slots for ACKNOWLEDGE_EVENT mode results 2015-12-28 12:13:47 +01:00
Thilo Graf
ae66014102 COPKGManager: defuse effect of resolve_conffiles errors 2015-12-28 12:13:47 +01:00
Thilo Graf
337cc097c8 COPKGManager: exit check size if package already installed
Old files will be remove during installation, so it should
be enough size.
2015-12-28 12:13:47 +01:00
Thilo Graf
54d3ad261c COPKGManager: use wildcard char for ar command
This fixes unpacking of local and downloaded packages.
2015-12-28 12:13:46 +01:00
Thilo Graf
ce3c4d3b04 COPKGManager: add functions isInstalled() and isUpgradable() 2015-12-28 12:13:46 +01:00
Thilo Graf
cceef62661 COPKGManager: optimize check size
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
2015-12-28 12:13:46 +01:00
Thilo Graf
0f1a6e7588 COPKGManager: add optional parameter force_configure to installPackage() 2015-12-28 12:13:46 +01:00
Thilo Graf
aad5db705f COPKGManager: add possibility to manage source feeds for packages
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
2015-12-28 12:13:45 +01:00
Thilo Graf
ee56b75567 COPKGManager: ensure cleanup /tmp/.opkg after closing packet manager 2015-12-28 12:13:45 +01:00
Thilo Graf
14d21fdeec COPKGManager: use installPackage() for install from package list too
installPackage() has also a new parameter for options,
in this case is --force-reinstall in use.
2015-12-28 12:13:45 +01:00
Thilo Graf
55a027efbf COPKGManager: add methodes to get infos and status of packages 2015-12-28 12:13:45 +01:00
Thilo Graf
2ca1648070 COPKGManager: optimize memory check before install 2015-12-28 12:13:44 +01:00
Thilo Graf
28d17802d4 COPKGManager: show message on space error 2015-12-28 12:13:44 +01:00
Thilo Graf
362018ed76 CFlashUpdate: use locales for install and error messages 2015-12-28 12:13:44 +01:00
Thilo Graf
936735a77f CSoftwareUpdate: show package feature as disabled without support 2015-12-28 12:13:43 +01:00
Thilo Graf
58fa104967 CFlashUpdate: add localized messages for installation from default update feature 2015-12-28 12:13:43 +01:00
Thilo Graf
9ff0512496 CFlashUpdate: change lines for better statement readability 2015-12-28 12:13:43 +01:00
Thilo Graf
b987c9595a CFlashUpdate: add log output for not found package file 2015-12-28 12:13:43 +01:00
Thilo Graf
68585f1a0d CFlashUpdate: add filters for packages 2015-12-28 12:13:43 +01:00
Thilo Graf
19dc7ead2d COPKGManager: optimize error handling 2015-12-28 12:13:42 +01:00
Thilo Graf
9a4863173a COPKGManager: add more error handlers 2015-12-28 12:13:42 +01:00
Thilo Graf
9ae65d4ec5 COPKGManager: add function to check package size 2015-12-28 12:13:42 +01:00
Thilo Graf
33bf0fd7ba Locales: add message line for not supported feature 2015-12-28 12:13:42 +01:00
Thilo Graf
7ada20de64 CFile: add filetypes for install and update packages 2015-12-28 12:13:41 +01:00
Thilo Graf
7520fee2ef COPKGManager: outsource methode for install any package
Required for external usage.
2015-12-28 12:13:41 +01:00
Thilo Graf
10debbbfa0 COPKGManager: optimize handling after installation
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!
2015-12-28 12:13:41 +01:00
Thilo Graf
7acdf65e65 COPKGManager: defuse error message for duplicate cache option 2015-12-28 12:13:40 +01:00
Thilo Graf
a6f7043ab1 COPKGManager: add possibilty to check required size before install package 2015-12-28 12:13:40 +01:00
Thilo Graf
4909844ad6 COPKGManager: add member to handle line of shell lines
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
2015-12-28 12:13:40 +01:00
Thilo Graf
b3afd24260 COPKGManager: add members to get package infos and optmize update check 2015-12-28 12:13:39 +01:00
Thilo Graf
c3f66e6e06 COPKGManager: fix selection of items on expert mode switch 2015-12-28 12:13:39 +01:00
Thilo Graf
f270a623e2 COPKGManager: use yellow button instead red button in footer
Red button already used for upgrades
2015-12-28 12:13:39 +01:00
Thilo Graf
6016ea718c COPKGManager: add locales for local installation 2015-12-28 12:13:39 +01:00
Thilo Graf
dc3b6caae6 COPKGManager: unified log output 2015-12-28 12:13:38 +01:00
Thilo Graf
1606cf8a30 COPKGManager: remember for last selected update directory
Use g_settings to handle local package directory.
Extra settings handler via gui for this directory is not intended. Default update directory
is the same like in flash settings.
2015-12-28 12:13:38 +01:00
Thilo Graf
5eff6a4fb9 COPKGManager: add filter for ipk packages 2015-12-28 12:13:37 +01:00
Thilo Graf
7b178e71f9 COPKGManager: add variable to hold last selected source dir 2015-12-28 12:13:37 +01:00
Thilo Graf
f4bc1c8cb7 CShellWindow: reduce window size
In some cases screen could be too small and some lines are cutted.
2015-12-28 12:13:37 +01:00
Thilo Graf
3896d7ceec CShellWindow: add debug output for error ident 2015-12-28 12:13:37 +01:00
Thilo Graf
9f565a2dd0 CShellWindow: use full screen for shell window 2015-12-28 12:13:36 +01:00
Thilo Graf
cd7f4bc79c CShellWindow: use internal debug functionality, set init value for pid 2015-12-28 12:13:36 +01:00
Thilo Graf
3abd9c8e77 COPKGManager: add possibility to install package from single package file 2015-12-28 12:13:36 +01:00
Thilo Graf
04ad939ea7 CShellWindow: optimize error review after error message
Show close button in window, give user possibility to read error listing
before close the window!
2015-12-28 12:13:36 +01:00
Thilo Graf
14779cce55 CShellWindow: evaluate error output for plausible message output 2015-12-28 12:13:35 +01:00
Thilo Graf
524b91a402 COPKGManager: use shell output to generate error messages for gui 2015-12-28 12:13:35 +01:00
Thilo Graf
6feca09a07 locales: remove format tags in opkg manager messages
Most messages can shows more details after evaluation of shellmessages.
2015-12-28 12:13:35 +01:00
Thilo Graf
eb6f972f60 COPKGManager: add member doUpdate() 2015-12-28 12:13:35 +01:00
Thilo Graf
6a06d5cdc1 COPKGManager: use fclose instead pclose
my_popen returns a stream pointed to a file descriptor

NOTE: documentation for some bent functions in helpers.cpp would be nice!
2015-12-28 12:13:34 +01:00