Commit Graph

128 Commits

Author SHA1 Message Date
Thilo Graf
ee0f90d083 Icons: change check markers, rename to dialog on/off, add update marker 2018-04-11 17:07:19 +02:00
Stefan Seyfried
25f089db7c opkg_manager: use CTermWindow() 2018-01-13 20:10:31 +01:00
Thilo Graf
01350745c7 COPKGManager: fix path search for ../opkg/info
Since changed TARGET_PREFIX variable, path was wrong and causing
possible long timeout while opening the manager window.
2017-12-23 16:31:47 +01:00
Jacek Jendrzej
6be63f736c Merge branch 'master' into pu/mp 2017-08-23 13:10:49 +02:00
Jacek Jendrzej
ba600f0e5c some inits and never read var 2017-08-23 12:58:26 +02:00
Jacek Jendrzej
f791ee1455 Merge branch 'master' into pu/mp 2017-07-02 17:22:23 +02:00
Jacek Jendrzej
18e1ec060f src/gui/opkg_manager.cpp fix esource leak; supplement to 4bdacf39c8 2017-07-01 10:26:33 +02:00
Stefan Seyfried
48ff7b36a2 Merge remote-tracking branch 'tuxbox/master' 2017-01-30 21:36:09 +01:00
M. Liebmann
6b4a849598 src/gui/opkg_manager.cpp: Fix compiler warning 2017-01-30 07:15:46 +01:00
Stefan Seyfried
fd52cd5023 upkg_manager: comment out stale code 2017-01-29 21:27:45 +01:00
Stefan Seyfried
3fb3f39be7 opkg_manager: make error messages less cryptic
the errno has nothing to do with the error that happened, so do not use
it for the error message
2017-01-29 21:27:45 +01:00
Stefan Seyfried
8a6194a047 opkg_manager: add magic string to reset error flags
... to be used by sytem-update script
2017-01-29 21:27:45 +01:00
Stefan Seyfried
3956f06d3a opkg_manager: make console output more useful 2017-01-29 21:27:45 +01:00
Stefan Seyfried
bbd7667ee9 opkg_manager: don't set error flag for shellwindow
The shellwindow exits if the "ok" flag is set to false, aborting further
execution of more commands. This hurts with system-update script.
2017-01-29 21:27:45 +01:00
Stefan Seyfried
1454d09a75 opkg_manager: avoid the zombie apocalypse, use waitpid() 2017-01-29 21:27:45 +01:00
Stefan Seyfried
fd9387a43c opkg_manager: use system-update script if available
opkg has several problems with complex system updates, especially when
having to update itself and with the package ordering during update
To avoid hard coding the workarounds into neutrino, just call a script
named "system-update" (if available) instead of "opkg upgrade".
This script can be tuned to the specific target and its problems.
2017-01-29 21:27:45 +01:00
Stefan Seyfried
448b5dc7c7 upkg_manager: comment out stale code 2017-01-29 02:00:50 +01:00
Stefan Seyfried
b37faafc80 opkg_manager: make error messages less cryptic
the errno has nothing to do with the error that happened, so do not use
it for the error message
2017-01-29 01:59:40 +01:00
Stefan Seyfried
9d6bbc4552 opkg_manager: add magic string to reset error flags
... to be used by sytem-update script
2017-01-29 01:58:56 +01:00
Stefan Seyfried
7fd5149f01 opkg_manager: make console output more useful 2017-01-29 01:58:24 +01:00
Stefan Seyfried
0c8d7d7d17 opkg_manager: don't set error flag for shellwindow
The shellwindow exits if the "ok" flag is set to false, aborting further
execution of more commands. This hurts with system-update script.
2017-01-29 01:52:08 +01:00
Stefan Seyfried
4dc1efbf2c opkg_manager: avoid the zombie apocalypse, use waitpid() 2017-01-28 14:06:39 +01:00
Stefan Seyfried
904788b992 opkg_manager: use system-update script if available
opkg has several problems with complex system updates, especially when
having to update itself and with the package ordering during update
To avoid hard coding the workarounds into neutrino, just call a script
named "system-update" (if available) instead of "opkg upgrade".
This script can be tuned to the specific target and its problems.
2017-01-28 14:03:27 +01:00
Stefan Seyfried
c6d7968381 Merge remote-tracking branch 'tuxbox/master' 2016-12-04 18:02:51 +01:00
Thilo Graf
318c64708d COPKGManager: simplify hintbox calls 2016-11-20 22:53:21 +01:00
Thilo Graf
dde298b1b7 CMsgBox: rework msgbox classes with Window class implementation
Replacing messagebox, hintbox_ext and some derivated parts with
basic class hintbox and derivated class CMsgBox. This should unify
window handling and avoids maintain of multiple classes with quasi
same purpose and adds more functionality.

TODO: fix and optimize details
2016-10-24 10:31:24 +02:00
Stefan Seyfried
74bc08a106 opkg_manager: use "opkg" instead of "opkg-cl"
old releases had "opkg" as compat symlink to -cl, newer releases
only have opkg binary, so change to opkg for broader compatibility
2016-10-22 13:13:28 +02:00
Stefan Seyfried
13ab1ebc8a Merge remote-tracking branch 'tuxbox/master'
* needs compile fixes
* needs additional tests, of course :-)
2016-10-22 11:37:40 +02:00
M. Liebmann
a0a09f1f7c COPKGManager: Fix display description for locally installed packages 2016-10-13 09:53:52 +02:00
M. Liebmann
1f24e5725a COPKGManager::hasOpkgSupport: Disable directory check
If directory /var/lib/opkg resp. /opt/opkg does not exist,
  it is created by opkg itself
2016-10-13 09:53:52 +02:00
Thilo Graf
33135a5bc5 COPKGManager: generate a readable string for installation time 2016-03-03 09:52:18 +01:00
Jacek Jendrzej
7db16952f6 (performance) Prefer prefix ++/-- operators for non-primitive types 2016-02-16 13:02:10 +01:00
Thilo Graf
c9a2b46b3b COPKGManager: add define for feed setup, default disabled at the moment.
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.
2016-02-16 09:39:05 +01:00
Stefan Seyfried
70b7f74362 replace __FILE__ with __file__ 2016-01-14 22:29:00 +01:00
Stefan Seyfried
fa05d6a415 fix debug output printf type warnings 2016-01-14 22:28:59 +01:00
Stefan Seyfried
25e6f0e820 replace __FILE__ with __file__ 2016-01-10 19:34:31 +01:00
Stefan Seyfried
b53fbaf327 Merge remote-tracking branch 'cst-next' 2016-01-08 19:52:41 +01:00
Stefan Seyfried
0d6fd4c7d7 opkg_manager: make progress reports on startup more practical
Signed-off-by: Thilo Graf <dbt@novatux.de>
2016-01-05 15:06:18 +01:00
Stefan Seyfried
45707de09e opkg_manager: do not read package list twice on start
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>
2016-01-05 15:06:18 +01:00
Stefan Seyfried
fb5265e0fa opkg_manager: explicitly clear pkg_map in destructor
Signed-off-by: Thilo Graf <dbt@novatux.de>
2016-01-05 15:06:18 +01:00
Stefan Seyfried
8f0e74a3bf opkg_manager: fix invalid match with -foo$ "regex"
Signed-off-by: Thilo Graf <dbt@novatux.de>
2016-01-05 15:06:18 +01:00
Stefan Seyfried
8578218c38 opkg_manager: do not put bad packages into package list
"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>
2016-01-05 15:06:18 +01:00
Stefan Seyfried
cb9ec38623 opkg_manager: tone down diagnostics in badpackage()
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>
2016-01-05 15:06:18 +01:00
Stefan Seyfried
dd493eac8a opkg_manager: disarm checkSize() function
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.
2016-01-05 15:06:18 +01:00
Stefan Seyfried
fccb831b05 opkg_manager: disable "key_up" after updating packages
Signed-off-by: Thilo Graf <dbt@novatux.de>
I think too.
2016-01-05 15:06:18 +01:00
Stefan Seyfried
662433c0c3 opkg_manager: remove reboot and restart trigger files
Signed-off-by: Thilo Graf <dbt@novatux.de>
2016-01-05 15:06:18 +01:00
Stefan Seyfried
09d7361f42 opkg_manager: don't use hardcoded path
instead of "/var/tuxbox/config" use CONFIGDIR instead.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2016-01-05 15:06:18 +01:00
Stefan Seyfried
4f5bbd56bd opkg_manager: make progress reports on startup more practical 2016-01-03 17:55:49 +01:00
Stefan Seyfried
072c411860 opkg_manager: do not read package list twice on start
checkUpdates() already gets the package list and the list of
upgradables, so it is unnecessary to do this again immediately
afterwards.
2016-01-01 23:20:03 +01:00
Stefan Seyfried
664e3012b3 opkg_manager: explicitly clear pkg_map in destructor 2016-01-01 23:18:59 +01:00