JobWidgetInstall refactoring - TaskConfiguration
[Issue#] LINUXWRT-820
[Feature] Refactoring
[Cause] There is too much logic in JobWidgetInstall
[Solution] This commit just moves code of JobWIdgetInstall to TaskConfiguration.
ALL OTHER CHANGES ARE MARKED as TODO (job_install_refactoring) and will be done later.
Following changes to be do in next:
- make proper steps in TaskConfiguration,
- clean getInstallerSTruct in TaskConfiguration,
- remove second parsing of config.xml,
- refactor TaskUnzip leftovers,
- fix TODOs in JobWidgetInstall context,
- header clean up in TaskConfiguration, JobWidgetInstall,
- (maybe) functions appendTaskList* shoule be refactored to seperate abstraction,
Jobs now uses MutableTaskList and tasks can be appended in running state.
There is no change in code because most of code uses installer context anyway.
Two additional fields were temporary supplied to installer context:
needEncryption and configureResult (those was internal variables in JobWidgetInstall).
Failure task was moved to seperate file.
[Verification] There was finally changed only few branches of code.
Do following steps (this tests two extracted to install context variables):
1. run wrt-installer -p - plugins should be installed.
2. Get widegt with some files (prefer with dozens of file e.g. use some game)
- install this widget and run it - success,
- run wrt-installer -i again and run widget - success,
- uninstall widget and isntall it again - widget should be runnign properly,
3. Get wigdet with encryption set (repeat steps from point 2.).
4. Get malformed zip file.
- try to install and observe failure message:
## wrt-installer : installation has failed - invalid widget package
[SCMRequest] This change requires: https://review.tizendev.org/gerrit/87851
Change-Id: Ib0abe152a1e524310692e213255a34c19cfb14e3