Commit Graph

7446 Commits

Author SHA1 Message Date
Thilo Graf
5b8ffae117 CShellWindow: use slots for ACKNOWLEDGE_EVENT mode results
Origin commit data
------------------
Commit: 982fbb962e
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-03-24 (Tue, 24 Mar 2015)
2015-12-28 12:13:47 +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
Thilo Graf
8a58c63fa8 COPKGManager: optimize memory check before install
Origin commit data
------------------
Commit: 2ca1648070
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-30 (Tue, 30 Dec 2014)
2015-12-28 12:13:44 +01:00
Thilo Graf
cdd8aac791 COPKGManager: show message on space error
Origin commit data
------------------
Commit: 28d17802d4
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-30 (Tue, 30 Dec 2014)
2015-12-28 12:13:44 +01:00
Thilo Graf
43a85c328c CFlashUpdate: use locales for install and error messages
Origin commit data
------------------
Commit: 362018ed76
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-28 (Sun, 28 Dec 2014)
2015-12-28 12:13:44 +01:00
Thilo Graf
401251278e CSoftwareUpdate: show package feature as disabled without support
Origin commit data
------------------
Commit: 936735a77f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-21 (Sun, 21 Dec 2014)
2015-12-28 12:13:43 +01:00
Thilo Graf
c0dfcb2508 CFlashUpdate: add localized messages for installation from default update feature
Origin commit data
------------------
Commit: 58fa104967
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-21 (Sun, 21 Dec 2014)
2015-12-28 12:13:43 +01:00
Thilo Graf
11a2548c9f CFlashUpdate: change lines for better statement readability
Origin commit data
------------------
Commit: 9ff0512496
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-20 (Sat, 20 Dec 2014)
2015-12-28 12:13:43 +01:00
Thilo Graf
4b6c597a81 CFlashUpdate: add log output for not found package file
Origin commit data
------------------
Commit: b987c9595a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-20 (Sat, 20 Dec 2014)
2015-12-28 12:13:43 +01:00
Thilo Graf
19d094063a CFlashUpdate: add filters for packages
Origin commit data
------------------
Commit: 68585f1a0d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-20 (Sat, 20 Dec 2014)
2015-12-28 12:13:43 +01:00
Thilo Graf
93b412354d COPKGManager: optimize error handling
Origin commit data
------------------
Commit: 19dc7ead2d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-29 (Mon, 29 Dec 2014)
2015-12-28 12:13:42 +01:00
Thilo Graf
da2254897f COPKGManager: add more error handlers
Origin commit data
------------------
Commit: 9a4863173a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-28 (Sun, 28 Dec 2014)
2015-12-28 12:13:42 +01:00
Thilo Graf
c77b075381 COPKGManager: add function to check package size
Origin commit data
------------------
Commit: 9ae65d4ec5
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-28 (Sun, 28 Dec 2014)
2015-12-28 12:13:42 +01:00
Thilo Graf
6062e04241 Locales: add message line for not supported feature
Origin commit data
------------------
Commit: 33bf0fd7ba
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-21 (Sun, 21 Dec 2014)
2015-12-28 12:13:42 +01:00
Thilo Graf
ecb186b43c CFile: add filetypes for install and update packages
Origin commit data
------------------
Commit: 7ada20de64
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-21 (Sun, 21 Dec 2014)
2015-12-28 12:13:41 +01:00
Thilo Graf
7660a6f5ff COPKGManager: outsource methode for install any package
Required for external usage.


Origin commit data
------------------
Commit: 7520fee2ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-20 (Sat, 20 Dec 2014)
2015-12-28 12:13:41 +01:00
Thilo Graf
b666ea7d49 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!


Origin commit data
------------------
Commit: 10debbbfa0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-19 (Fri, 19 Dec 2014)
2015-12-28 12:13:41 +01:00
Thilo Graf
d1b6b04169 COPKGManager: defuse error message for duplicate cache option
Origin commit data
------------------
Commit: 7acdf65e65
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-19 (Fri, 19 Dec 2014)
2015-12-28 12:13:40 +01:00
Thilo Graf
487b64f879 COPKGManager: add possibilty to check required size before install package
Origin commit data
------------------
Commit: a6f7043ab1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-13 (Sat, 13 Dec 2014)
2015-12-28 12:13:40 +01:00
Thilo Graf
c1ff8c9d5f 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


Origin commit data
------------------
Commit: 4909844ad6
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-10 (Wed, 10 Dec 2014)
2015-12-28 12:13:40 +01:00
Thilo Graf
6a28f2e66c COPKGManager: add members to get package infos and optmize update check
Origin commit data
------------------
Commit: b3afd24260
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-19 (Fri, 19 Dec 2014)
2015-12-28 12:13:39 +01:00
Thilo Graf
7eef6ed773 COPKGManager: fix selection of items on expert mode switch
Origin commit data
------------------
Commit: c3f66e6e06
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-22 (Fri, 22 May 2015)
2015-12-28 12:13:39 +01:00
Thilo Graf
420a3d27bd COPKGManager: use yellow button instead red button in footer
Red button already used for upgrades


Origin commit data
------------------
Commit: f270a623e2
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-05 (Fri, 05 Dec 2014)
2015-12-28 12:13:39 +01:00
Thilo Graf
195d6e3395 COPKGManager: add locales for local installation
Origin commit data
------------------
Commit: 6016ea718c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-29 (Sat, 29 Nov 2014)
2015-12-28 12:13:39 +01:00
Thilo Graf
5b76d4ccd7 COPKGManager: unified log output
Origin commit data
------------------
Commit: dc3b6caae6
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-25 (Tue, 25 Nov 2014)
2015-12-28 12:13:38 +01:00
Thilo Graf
0b67f5bba9 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.


Origin commit data
------------------
Commit: 1606cf8a30
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-28 (Fri, 28 Nov 2014)
2015-12-28 12:13:38 +01:00
Thilo Graf
866772900a COPKGManager: add filter for ipk packages
Origin commit data
------------------
Commit: 5eff6a4fb9
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-25 (Tue, 25 Nov 2014)
2015-12-28 12:13:37 +01:00
Thilo Graf
283197fb67 COPKGManager: add variable to hold last selected source dir
Origin commit data
------------------
Commit: 7b178e71f9
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-25 (Tue, 25 Nov 2014)
2015-12-28 12:13:37 +01:00
Thilo Graf
e77de2da0d CShellWindow: reduce window size
In some cases screen could be too small and some lines are cutted.


Origin commit data
------------------
Commit: f4bc1c8cb7
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-03-21 (Sat, 21 Mar 2015)
2015-12-28 12:13:37 +01:00
Thilo Graf
e6be3e3c53 CShellWindow: add debug output for error ident
Origin commit data
------------------
Commit: 3896d7ceec
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-28 (Sun, 28 Dec 2014)
2015-12-28 12:13:37 +01:00
Thilo Graf
8805f5d07d CShellWindow: use full screen for shell window
Origin commit data
------------------
Commit: 9f565a2dd0
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-22 (Fri, 22 May 2015)
2015-12-28 12:13:36 +01:00
Thilo Graf
58ab2d52e4 CShellWindow: use internal debug functionality, set init value for pid
Origin commit data
------------------
Commit: cd7f4bc79c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-25 (Tue, 25 Nov 2014)
2015-12-28 12:13:36 +01:00
Thilo Graf
4dde627de0 COPKGManager: add possibility to install package from single package file
Origin commit data
------------------
Commit: 3abd9c8e77
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)
2015-12-28 12:13:36 +01:00
Thilo Graf
b49751bbf6 CShellWindow: optimize error review after error message
Show close button in window, give user possibility to read error listing
before close the window!


Origin commit data
------------------
Commit: 04ad939ea7
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)
2015-12-28 12:13:36 +01:00
Thilo Graf
6091f9c155 CShellWindow: evaluate error output for plausible message output
Origin commit data
------------------
Commit: 14779cce55
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)
2015-12-28 12:13:35 +01:00
Thilo Graf
b8c7102275 COPKGManager: use shell output to generate error messages for gui
Origin commit data
------------------
Commit: 524b91a402
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)
2015-12-28 12:13:35 +01:00
Thilo Graf
1f91619ca7 locales: remove format tags in opkg manager messages
Most messages can shows more details after evaluation of shellmessages.


Origin commit data
------------------
Commit: 6feca09a07
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)
2015-12-28 12:13:35 +01:00
Thilo Graf
cfd23aee80 COPKGManager: add member doUpdate()
Origin commit data
------------------
Commit: eb6f972f60
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-22 (Sat, 22 Nov 2014)
2015-12-28 12:13:35 +01:00
Thilo Graf
8fa1d4fec0 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!


Origin commit data
------------------
Commit: 6a06d5cdc1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-23 (Sun, 23 Nov 2014)
2015-12-28 12:13:34 +01:00
Thilo Graf
7f5d29ba36 COPKGManager: use my_popen instead popen
popen causes some errors after flash update check


Origin commit data
------------------
Commit: a8376a5f8a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-13 (Thu, 13 Nov 2014)
2015-12-28 12:13:34 +01:00
Thilo Graf
b2f72fe6a4 COPKGManager: add function to get status for new package updates
Origin commit data
------------------
Commit: 6942173bf7
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-13 (Thu, 13 Nov 2014)
2015-12-28 12:13:34 +01:00