Commit Graph

93 Commits

Author SHA1 Message Date
Stefan Seyfried
50380667ec replace __FILE__ with __file__
Origin commit data
------------------
Commit: 25e6f0e820
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-10 (Sun, 10 Jan 2016)
2016-01-10 19:34:31 +01:00
Stefan Seyfried
f953af605a Merge remote-tracking branch 'cst-next'
Origin commit data
------------------
Commit: b53fbaf327
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-08 (Fri, 08 Jan 2016)
2016-01-08 19:52:41 +01:00
Stefan Seyfried
6727be6dcf opkg_manager: make progress reports on startup more practical
Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 0d6fd4c7d7
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
cb35c2ec4c 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>


Origin commit data
------------------
Commit: 45707de09e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
490b0e38de opkg_manager: explicitly clear pkg_map in destructor
Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: fb5265e0fa
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
cd6465590b opkg_manager: fix invalid match with -foo$ "regex"
Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 8f0e74a3bf
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
364755d7ce 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>


Origin commit data
------------------
Commit: 8578218c38
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
969dff65f0 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>


Origin commit data
------------------
Commit: cb9ec38623
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
2e7fb0eb74 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.


Origin commit data
------------------
Commit: dd493eac8a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
eb938ce4ce opkg_manager: disable "key_up" after updating packages
Signed-off-by: Thilo Graf <dbt@novatux.de>
I think too.


Origin commit data
------------------
Commit: fccb831b05
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
846f8f2d77 opkg_manager: remove reboot and restart trigger files
Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 662433c0c3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
8ddcda724c opkg_manager: don't use hardcoded path
instead of "/var/tuxbox/config" use CONFIGDIR instead.

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 09d7361f42
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Stefan Seyfried
9b09b5c7b2 opkg_manager: make progress reports on startup more practical
Origin commit data
------------------
Commit: 4f5bbd56bd
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-03 (Sun, 03 Jan 2016)
2016-01-03 17:55:49 +01:00
Stefan Seyfried
ca87830b1c 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.


Origin commit data
------------------
Commit: 072c411860
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 23:20:03 +01:00
Stefan Seyfried
b59b034acf opkg_manager: explicitly clear pkg_map in destructor
Origin commit data
------------------
Commit: 664e3012b3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 23:18:59 +01:00
Stefan Seyfried
2351c9922c opkg_manager: fix invalid match with -foo$ "regex"
Origin commit data
------------------
Commit: b9a5a30c52
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 23:18:19 +01:00
Stefan Seyfried
8b110e80bb opkg_manager: don't overwrite opkg.conf
overwriting the user's configuration with strange stuff is
not nice, so disarm this by renaming the config file :-)


Origin commit data
------------------
Commit: bb8ce41abf
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 23:12:36 +01:00
Stefan Seyfried
eeb81d7a52 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.


Origin commit data
------------------
Commit: 9eeeb08743
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 22:06:02 +01:00
Stefan Seyfried
39cfcab79a opkg_manager: remove opkg options
Just use standard options. If someone wants to change them,
/etc/opkg/opkg.conf is available for that purpose.


Origin commit data
------------------
Commit: 361556a1e3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 19:55:10 +01:00
Stefan Seyfried
de0aa47821 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.


Origin commit data
------------------
Commit: 28647d9e3c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 19:31:45 +01:00
Stefan Seyfried
90e3e34633 opkg_manager: disarm checkSize() function
Origin commit data
------------------
Commit: 609a591d9c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 19:30:58 +01:00
Stefan Seyfried
05f7dc602d opkg_manager: disable "key_up" after updating packages
Origin commit data
------------------
Commit: e3d845cec4
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 19:29:57 +01:00
Stefan Seyfried
757f433745 opkg_manager: remove reboot and restart trigger files
Origin commit data
------------------
Commit: 407c15f3f1
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 19:29:10 +01:00
Stefan Seyfried
aefcec168c opkg_manager: don't use hardcoded path
instead of "/var/tuxbox/config" use CONFIGDIR instead.


Origin commit data
------------------
Commit: 910310951e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 16:56:52 +01:00
Stefan Seyfried
0222346c9a Merge remote-tracking branch 'uncool/cst-next'
Origin commit data
------------------
Commit: 9113716171
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 14:10:48 +01:00
Thilo Graf
9926ef8626 COPKGManager: don't init if no opkg support available
This avoids creating of any basic configuration files or directories on
non opkg supported firmware releases.


Origin commit data
------------------
Commit: bea8f5e980
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-29 (Tue, 29 Dec 2015)
2015-12-29 16:55:08 +01:00
Michael Liebmann
e850bae224 Fix & sort locale
Origin commit data
------------------
Commit: 182e6ae5d1
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-28 (Mon, 28 Dec 2015)
2015-12-28 16:24:24 +01:00
Stefan Seyfried
3b60f5db24 fix debug output printf type warnings
Origin commit data
------------------
Commit: 3e37715c86
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-12-28 (Mon, 28 Dec 2015)
2015-12-28 16:23:26 +01:00
Thilo Graf
f37e0a9b0f opkg_manager.cpp: disable unused variable
avoid compiler error/warning


Origin commit data
------------------
Commit: 92b579b3c6
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-28 (Mon, 28 Dec 2015)
2015-12-28 14:08:10 +01:00
Thilo Graf
be7b3c5629 opkg_manager.cpp: add statement for local environment
TODO: detect available opkg binary


Origin commit data
------------------
Commit: a9c549d0bf
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-28 (Mon, 28 Dec 2015)
2015-12-28 14:07:55 +01:00
Thilo Graf
d21e562b68 COPKGManager: lets see user install result in window
Origin commit data
------------------
Commit: 4f9a3df6c4
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-06-11 (Thu, 11 Jun 2015)
2015-12-28 12:13:51 +01:00
Thilo Graf
c190f485de COPKGManager: use config file for bad package detection
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


Origin commit data
------------------
Commit: 9345f792a7
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-06-11 (Thu, 11 Jun 2015)
2015-12-28 12:13:51 +01:00
Thilo Graf
b365d430bb COPKGManager: show debug lines on founded bad packages
It seems some innocent packages could be filtered but without
plausible reason and this should be indicated.


Origin commit data
------------------
Commit: 696c70ae13
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-06-10 (Wed, 10 Jun 2015)
2015-12-28 12:13:50 +01:00
Thilo Graf
c0824893ce COPKGManager: use opkg as binary name only, reduce support check deps
Some deps are currently not really required.


Origin commit data
------------------
Commit: 7aafea5f5d
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-06-08 (Mon, 08 Jun 2015)
2015-12-28 12:13:50 +01:00
Thilo Graf
e0988607d5 CShellWindow/COPKGManager: rework shell shell mode handling
Modes were handled with bool values inside manager and this is not really
enough. Now we use the real parameters for more flexibility.


Origin commit data
------------------
Commit: e1e8cb0142
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-28 (Thu, 28 May 2015)
2015-12-28 12:13:50 +01:00
Thilo Graf
a9638d6e9e COPKGManager: use strictly shell window object to execute commands
Origin commit data
------------------
Commit: 8edbbaddc0
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-25 (Mon, 25 May 2015)
2015-12-28 12:13:50 +01:00
Thilo Graf
0227cdcf1f COPKGManager: remove useless err_msg var, replaced by tmp_str
Origin commit data
------------------
Commit: 79f66537f0
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-25 (Mon, 25 May 2015)
2015-12-28 12:13:49 +01:00
Thilo Graf
d3333cb462 COPKGManager: use parameters for errror message and additional text as option
Origin commit data
------------------
Commit: 9a6aae8f49
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-25 (Mon, 25 May 2015)
2015-12-28 12:13:49 +01:00
Thilo Graf
157133c87b COPKGManager: show package info via message box instead shell window
Origin commit data
------------------
Commit: f3d7bdda1e
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-24 (Sun, 24 May 2015)
2015-12-28 12:13:48 +01:00
Thilo Graf
fac2770a84 CShellWindow/COPKGManager: handle some error from shell output
TODO: add missing handlers


Origin commit data
------------------
Commit: ed5bbdc540
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-23 (Sat, 23 May 2015)
2015-12-28 12:13:48 +01:00
Thilo Graf
cd594aba84 COPKGManager: defuse effect of resolve_conffiles errors
Origin commit data
------------------
Commit: ae66014102
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
2015-12-28 12:13:47 +01:00
Thilo Graf
a35fd12b0e COPKGManager: exit check size if package already installed
Old files will be remove during installation, so it should
be enough size.


Origin commit data
------------------
Commit: 337cc097c8
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
2015-12-28 12:13:47 +01:00
Thilo Graf
77426b41a6 COPKGManager: use wildcard char for ar command
This fixes unpacking of local and downloaded packages.


Origin commit data
------------------
Commit: 54d3ad261c
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
2015-12-28 12:13:46 +01:00
Thilo Graf
fb7d1b6996 COPKGManager: add functions isInstalled() and isUpgradable()
Origin commit data
------------------
Commit: ce3c4d3b04
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-07 (Sat, 07 Feb 2015)
2015-12-28 12:13:46 +01:00
Thilo Graf
a2baf79a44 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


Origin commit data
------------------
Commit: cceef62661
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-23 (Sat, 23 May 2015)
2015-12-28 12:13:46 +01:00
Thilo Graf
7aabc0fec6 COPKGManager: add optional parameter force_configure to installPackage()
Origin commit data
------------------
Commit: 0f1a6e7588
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-05 (Thu, 05 Feb 2015)
2015-12-28 12:13:46 +01:00
Thilo Graf
2fafd8e3f4 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


Origin commit data
------------------
Commit: aad5db705f
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-04 (Wed, 04 Feb 2015)
2015-12-28 12:13:45 +01:00
Thilo Graf
9a90e078b5 COPKGManager: ensure cleanup /tmp/.opkg after closing packet manager
Origin commit data
------------------
Commit: ee56b75567
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-31 (Sat, 31 Jan 2015)
2015-12-28 12:13:45 +01:00
Thilo Graf
de30f65a50 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.


Origin commit data
------------------
Commit: 14d21fdeec
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-31 (Sat, 31 Jan 2015)
2015-12-28 12:13:45 +01:00
Thilo Graf
0b6893683a COPKGManager: add methodes to get infos and status of packages
Origin commit data
------------------
Commit: 55a027efbf
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-04 (Wed, 04 Feb 2015)
2015-12-28 12:13:45 +01:00