sung-su.kim [Tue, 17 Sep 2013 10:23:09 +0000 (19:23 +0900)]
Remove print guid log
[Issue#] N/A
[Problem] Not exist guid value.
[Cause] Try to print guid before set guid.
[Solution] Remove print guid log.
Because configuration task run before get guid value from config file.
[SCMRequest] N/A
Change-Id: Ic0e88a1fd3564b16756a78c75d9cd7ce7e947554
Tomasz Iwanek [Fri, 20 Sep 2013 10:59:14 +0000 (12:59 +0200)]
Fix Prevent issue
- Incorrect usage of TEMP_FAILURE_RETRY
[Issue#] CID: 22993, 22996, LINUXWRT-906
[Problem] closedir() repeated if EINTR occurrs
[Cause] Same as Prevent CID: 22995
https://review.tizendev.org/gerrit/#/c/83449/
* For POSIX closedir() specifies two possible errno values: EBADF, EINTR
(see closedir(3p)).
* For Linux, on the other hand, only one errno value is specified: EBADF
(see closedir(3)).
* In fact, closedir() implementation in GNU C Library may set other errno
values as well, e.g. EINVAL if value NULL is passed to the function
(verified for glibc 2.15, source file sysdeps/unix/closedir.c).
* Assuming that closedir() is just a wrapper around a call to close()
system call and having in mind that it was decided (and confirmed by
Linus Torvalds) that repeating close() even for EINTR is unsafe which I have
decided to not repeat closedir() in such case as well.
* What's more, implementation of closedir() in GNU C Library calls free()
on the stream handle, so repeating closedir() may lead to memory
corruption (as reported by Prevent).
[Solution] Do not repeat closedir() on error (even EINTR).
[SCMRequest] N/A
[Verification] Build repository.
Change-Id: I857861d1f10954d4c199bf8d54fc5ea13cb00d44
Soo-Hyun Choi [Thu, 19 Sep 2013 06:35:47 +0000 (15:35 +0900)]
Fix build warning
* warning: 'Logic::InstallerLogic::m_NextHandle' will be initialized after
warning: 'Jobs::Job* Logic::InstallerLogic::m_job'
[Issue#] N/A
[Problem] Build warning
[Cause] Disordering when initializes member variables
[Solution] Fixed initialization order
Change-Id: I0d853e23d433b73ba194c6f1ad75b421477172a7
Tomasz Iwanek [Tue, 17 Sep 2013 09:05:49 +0000 (11:05 +0200)]
Fix buildbreak for wrt-installer testsuite
[Issue#] N/A
[Bug] Buildbreak introduced
[Cause] N/A
[Solution] N/A
[Verification] Build with option: --define "WITH_TESTS ON"
Change-Id: If22057b9b52793f28352a8940689e7749a509adc
sung-su.kim [Tue, 17 Sep 2013 01:20:46 +0000 (10:20 +0900)]
Reformatting wrt-installer debug logs
[Issue#] N/A
[Problem] N/A
[Cause] Change wrt-installer log form C++ style to C style.
[Solution] Change wrt-installer log from C++ style to C style.
Remove <dlog.h> & <dpl/log/log> header
[SCMRequest] N/A
Change-Id: I491114e21406e37ab0ce3581618c9f0967455835
Zbigniew Kostrzewa [Fri, 13 Sep 2013 13:00:33 +0000 (15:00 +0200)]
Fix installation of widgets with multiple default icons
[Issue#] WGL-540
[Problem] The default Tizen icon is displayed on menu tray
instead of the one provided with web application.
[Cause] When more than one default icons are provided with web application
(e.g. icon.jpg and icon.png) then one of them is installed in the file
system (icon.png) but the other one is set in manifest file (icon.jpg).
As a result, web application's icon cannot be found and tizen default
icon is displayed instead.
[Solution] Make sure that the same icon is installed in the file system
as is set in manifest file (with respect to the default icon search
order specified by W3C P&C spec).
[Verification]
1. Build repository
2. Install web application attached to WGL-540
(icon.png should be used as the web application's icon)
3. Install any web application with a single default icon provided
inside the web application's package.
4. Install any web application with an icon specified in the web
application's configuration file.
5. Install any web application with an icon specified in the web
application's configuration file and a default icon available in the
web application's package (icon explicitly specified in the web
application's configuration file should be used).
Change-Id: Ia3b05a1c6d926ab8fb9bc70766340d07f469ac8f
Zbigniew Kostrzewa [Mon, 16 Sep 2013 06:23:13 +0000 (08:23 +0200)]
Fix Prevent issue
[Issue#] CID: 31536
[Problem] Unreachable code
[Cause] Condition that is never true
[Solution] Remove dead code
[Verification] Build repository
Change-Id: Idd0e37f350b47d9355575bfa93ebcc2ee2209f4b
HOSEON LEE [Mon, 16 Sep 2013 03:05:56 +0000 (03:05 +0000)]
Revert "Reformatting wrt-installer debug logs"
This reverts commit
7facd01b36d15dceca3819baa339163d2a24f679.
Change-Id: I74b9c82da92d047d669fc1c1afb474ca40e5bfb8
sung-su.kim [Sun, 15 Sep 2013 23:42:44 +0000 (08:42 +0900)]
[Release] wrt-installer_0.1.126
Change-Id: I4bccc49e228395e0fcba783ec3bc6ea69abe6d9a
sung-su.kim [Sun, 15 Sep 2013 10:58:43 +0000 (19:58 +0900)]
Fixed build break after Change-Id: I3277d5796e029b382719df03381078af910ebdda
[Issue#] N/A
[Problem] Build break after Change-Id: I3277d5796e029b382719df03381078af910ebdda
[Cause] The order of header file inclusion matters.
[Solution] Re-ordered header file inclusions.
Change-Id: Ieb4ba8b3b83e7cd6b2414defbf7e146db1cc5d2c
sung-su.kim [Sun, 15 Sep 2013 09:51:59 +0000 (18:51 +0900)]
Reformatting wrt-installer debug logs
[Issue#] N/A
[Problem] N/A
[Cause] Change wrt-installer log form C++ style to C style.
[Solution] Change wrt-installer log from C++ style to C style.
Remove <dlog.h> & <dpl/log/log> header
[SCMRequest] N/A
Change-Id: Ib1e7db709e43db399b83eafa6af337efaadf1a84
Adam Banasiak [Tue, 10 Sep 2013 15:46:22 +0000 (17:46 +0200)]
Add functions to represent package directories
[Issue#] LINUXWRT-358
[Problem] Function wasn't invoked due to objective programming standards
[Cause] N/A
[Solution] Add two new functions in src/misc/widget_location.cpp:
- getUsrSharePackagesDir
- getOptSharePackagesDir
Change-Id: Ia38d2982443274ec300e376f5b8c94457e417b9a
Adam Banasiak [Tue, 10 Sep 2013 15:40:05 +0000 (17:40 +0200)]
Add typedef for the long class types
[Issue#] LINUXWRT-358
[Problem] Long type names are hard to read
[Cause] N/A
[Solution] Created typedefs for the followings:
- InstallerBase
- WidgetInstallationBase
- WidgetUnistallStructBase
- UninstallContextBase
Change-Id: I8aff13bca4fbf83ccf72962c149845e0277f90ae
Adam Banasiak [Tue, 10 Sep 2013 15:22:55 +0000 (17:22 +0200)]
Add forward declarations
[Issue#] LINUXWRT-358
[Problem] Forward declarations needed
[Cause] N/A
[Solution] Added forward declariations in
- src/jobs/plugin_install/job_plugin_install.cpp
- src/jobs/widget_uninstall/task_db_update.h
- src/jobs/widget_uninstall/task_delete_pkginfo.h
[SCMRequest] N/A
Change-Id: I3277d5796e029b382719df03381078af910ebdda
sung-su.kim [Fri, 13 Sep 2013 01:30:49 +0000 (10:30 +0900)]
[Release] wrt-installer_0.1.125
Change-Id: I44fb5c2d8df47bcdc2671f6da1c6cbd205ffba70
Tomasz Iwanek [Thu, 12 Sep 2013 15:14:21 +0000 (17:14 +0200)]
Fix update logic for preloaded app
[Issue#] LINUXWRT-864
[Problem] Preloader/RO app fails to update
[Cause] Shared directory tried to be copied
[Solution] "shared" direcotry is already always on RW partion (/opt/usr) so no need "moving".
[Verification] Install and update:
- preloaded app (run any app wrt-installer -ip [.wgt] (for update same))
- normal app (run any app wrt-installer -i [.wgt] (for update same))
Change-Id: Ia6feb9a9fb41d3256290f61eee9da7c161d53f36
Soyoung Kim [Mon, 9 Sep 2013 08:32:27 +0000 (17:32 +0900)]
Fixed csc web app's preload attribute.
[Issue#] N/A
[Problem] The web app installed by csc display download app at setting menu.
[Cause] preload attribute doesn't set if installed by csc.
[Solution] set preload attribute if installed csc.
[SCMRequest] N/A
Change-Id: I3a3490511ecd86b2a604e75ef231d053ef85a6e5
Soyoung Kim [Thu, 12 Sep 2013 04:41:32 +0000 (13:41 +0900)]
Fixed update failed after uninstall hybrid web app.
[Issue#] N/A
[Problem] uninstallation failed during osp service app.
[Cause] pkg info is checked during uninstall osp service app.
But wrt-installer remove pkg info before call uninstallation osp app.
[Solution] Task of uninstall osp service app move to front of removing pkg information.
[SCMRequest] N/A
Change-Id: I5165754e17a46b42e162056c77001bce83734d06
sung-su.kim [Wed, 11 Sep 2013 23:09:43 +0000 (08:09 +0900)]
[Release] wrt-installer_0.1.124
Change-Id: I8c782d8cffe2c0eac54bff54222083e7c6869ec4
Adam Banasiak [Tue, 10 Sep 2013 14:55:34 +0000 (16:55 +0200)]
Add WidgetInstallationStruct into namespace
[Issue#] Linux-358
[Problem] Declaration Widget Installation Struct without any namespace
[Cause] N/A
[Solution] WidgetInstallationStruct added into Jobs::WidgetInstall namespace
Change-Id: Iacc417fa211412e30387c01b4d43628b8f9c1552
sung-su.kim [Wed, 11 Sep 2013 12:02:57 +0000 (21:02 +0900)]
Define wrt-installer log format
[Issue] N/A
[Problem] N/A
[Cause] Change wrt-installer log form C++ style to C style
[Solution] Define wrt-installer log format using wrt-commons log format.
- LogDebug/LogError/LogWarning to _D, _E, _W
- Error log color change to red.
- Define macro for type change from DPL::String to char*
[SCMRequest] N/A
Change-Id: I1b585b4a93cfaa9ea38da11f5f9fc4860ec0d5d3
Hoseon LEE [Wed, 11 Sep 2013 04:48:59 +0000 (13:48 +0900)]
Update screen size feature list
- Filtering rule based on application's "screen size" has been fixed:
[Issue#] N/A
[Problem] Missing a screen size according to the new rule.
[Cause] Fixed the list of supported screen size recently.
- 600X1024 is added
[Solution] Update screen size in the list.
[SCMRequest] N/A
Change-Id: I73e46e35ec81431e9141ea4425e5c21b8c952bdb
Adam Banasiak [Tue, 10 Sep 2013 14:25:18 +0000 (16:25 +0200)]
Remove "TODO" comments from the various places in the code
[Issue#] LINUXWRT-358
[Problem] Outdated TODO's, Unnecessary 'include' directives
[Cause] N/A
[Solution] Removed "TODO" comments
Change-Id: Ia80e1131c3ec8526549ad887d0e24f8fa8444c36
Adam Banasiak [Tue, 10 Sep 2013 13:49:02 +0000 (15:49 +0200)]
Change name (getInstallerStruct -> GetInstallerStruct)
[Issue#] LINUXWRT-358
[Problem] Incorrect function name
[Cause] N/A
[Solution] Rename function
- src/jobs/plugin_install/job_plugin_install.cpp
- src/jobs/widget_uninstall/job_widget_uninstall.cpp
Change-Id: Ic3724cb330968f607c2d43f22f84073d1cb25524
Adam Banasiak [Tue, 10 Sep 2013 13:46:41 +0000 (15:46 +0200)]
Change name (getInstallerStruct -> GetInstallerStruct)
[Issue#] LINUXWRT-358
[Problem] Incorrect function name
[Cause] N/A
[Solution] Rename function in src/jobs/widget_install/job_widget_install.cpp
Change-Id: I36e92f37799a93d6537ee60b16fcb7d1d0e454d3
Adam Banasiak [Tue, 10 Sep 2013 13:44:27 +0000 (15:44 +0200)]
Change name (getInstallerStruct -> GetInstallerStruct)
[Issue#] LINUXWRT-358
[Problem] Incorrect function name
[Cause] N/A
[Solution] Rename function
Change-Id: I56bde2c393a61cc8af5a05f6f0d9dd92bc897a70
Adam Banasiak [Tue, 10 Sep 2013 12:04:31 +0000 (14:04 +0200)]
Change function and variable name (UndoType -> abortStarted)
[Issue#] LINUXWRT-358
[Problem] Incorrect names of variable and function
[Cause] N/A
[Solution] Rename function and variable names
Change-Id: Iea9bb7fecd8ec57f54d90bebb2e906abd4a8cde7
Adam Banasiak [Tue, 10 Sep 2013 10:05:00 +0000 (12:05 +0200)]
Add routine to check valid locale
[Issue#] LINUXWRT-358
[Problem] Missing logic to validate the default locale in widget parser
[Cause] N/A
[Solution] Add default locale validation to widget parser
Change-Id: Ib8183f0ce9454676415154cd868d2d078012acae
sung-su.kim [Tue, 10 Sep 2013 23:21:49 +0000 (08:21 +0900)]
[Release] wrt-installer_0.1.123
Change-Id: Id28058b48d575ea65ad427b7b59fccddbd61ac6c
Yunchan Cho [Mon, 26 Aug 2013 09:04:58 +0000 (18:04 +0900)]
Register a new appid for dynamic box and its symbolic link to /usr/bin/WebProcess
- Tizen application is registered to app_info DB on installation time, hence
this change needs to be done in wrt-installer
[Issue] N/A
[Problem] wrt-plugins (or external root daemon) cannot retrieve appid properly
based on the pid of Box WebProcess.
[Cause] app_manager API which gets appid from pid considers only
registered executable path on app_info DB.
(app_manager gets executable path from /proc/<pid>/cmdline
matched to pid of WebProcess)
[Solution] WebProcess associated with the box needs to be registered to
app_info DB on installation time.
1. Register symbolic link (/usr/bin/WebProcess) per box
2. Register the box's new appid to app_info DB on installation time
2. wrt-installer adds 'root_path' attribute of <package> on application xml.
- 'root_path' has application root directory (absolute path) as value,
so that web-provider gets root dir of package using pkgmgr API.
Change-Id: Ic37d5172d9ee4434375858d5e441257ae8e7a736
Tomasz Iwanek [Mon, 9 Sep 2013 15:07:20 +0000 (17:07 +0200)]
Broken header guard for pkgmgr_signal.h
[Issue#] N/A
[Bug] Broken header guard for pkgmgr_signal.h
[Cause] Broken header guard for pkgmgr_signal.h
[Solution] Fix
[Verification] Build repo.
Change-Id: Ib7ba7689f7f03f280776d6955d73c5c3fc9303cf
sung-su.kim [Sun, 8 Sep 2013 23:21:12 +0000 (08:21 +0900)]
[Release] wrt-installer_0.1.122
Change-Id: I77e1e31d9cc1fb7277ea355af5fd543ff05541c5
Soyoung Kim [Fri, 6 Sep 2013 10:19:53 +0000 (19:19 +0900)]
Fix uninstallation failure followed by https://tizendev.org/gerrit/#/c/85895/
[Issue#] N/A
[Problem] Uninstall web app failure followed by:
commit
04ed54303f1236635e13a0f0d7b99b2d8ebcf51f
[Cause] DB operations were moved to just before removing files.
[Solution] Removing external file logic is moved to the DB operations.
[SCMRequest] N/A
Change-Id: Ie6b429c9815cac61212ad50ae6936428a5ac3b25
Soyoung Kim [Wed, 7 Aug 2013 05:58:44 +0000 (14:58 +0900)]
Separate update package information. Phase2.
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] 1. To update package information separte from removefiles.
2. organize the task lists of uninstallation.
[SCMRequest] N/A
Change-Id: I8e29dcc6f66f4d5516d2596754889c218d8821be
Grzegorz Rynkowski [Wed, 4 Sep 2013 13:32:48 +0000 (15:32 +0200)]
Fix building the package with GCC-4.8
[Problem] The package cannot be built with gcc-4.8.
[Cause] Missing #include statements.
[Solution] Add the missing #include statements.
[Verification] Build package both with current (GCC-4.5) and (GCC-4.8) version of compiler.
Change-Id: I9acb3034aee32ae1481315bf56673104506485a7
sung-su.kim [Wed, 4 Sep 2013 06:39:42 +0000 (15:39 +0900)]
[Release] wrt-installer_0.1.121
Change-Id: I98a453a5999d905e410d28bd7b5d938c79353cba
Tomasz Iwanek [Tue, 3 Sep 2013 09:04:53 +0000 (11:04 +0200)]
Fix backendlib - wrong icon returned
[Issue#] LINUXWRT-824
[Problem] First icon is always returned from backendlib
i.e., Curent locale settigns are not taken into account.
[Cause] This was just not handled before.
- The exact problem is that after installation icon is ok(notiication)
but before it is read from package file.
- This operation does not involve full steps in case of installation.
Backend lib should do it in more checking to find best icon.
[Solution] Added workaround to return icon according to locale setting
[Verification] Install bm.wgt (W3C P&C icon test) from MyFiles app.
Icon in "install prompt view" (before installing) and in notification
should be used for proper locale (change locale to en).
Change-Id: If9d9d32dd2a69914bf72aacf6a82c7881cab2918
Kamil Nowac [Mon, 10 Jun 2013 11:51:49 +0000 (13:51 +0200)]
[Path Usage Unification] Plugin Installation Paths (further enhancements)
[Issue#] LINUXWRT-422
[Problem] A lot of paths used in wrt are constructed manually
[Cause] N/A
[Solution] Created class PluginPath which gathers all manually constructed paths
[Verification]
1. Build wrt-installer repo with --define "WITH_TESTS ON"
2. Install plugins by using wrt-installer -p and
run tests wrt-installer-tests-general --output=text
They shoud install without problems and tests should pass.
Change-Id: I82f1f3d2e9b46b9363f93311557984da1aeaabbd
Tomasz Iwanek [Tue, 27 Aug 2013 09:24:00 +0000 (11:24 +0200)]
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
sung-su.kim [Mon, 2 Sep 2013 00:09:08 +0000 (09:09 +0900)]
[Release] wrt-installer_0.1.120
Change-Id: I5198eaa5972bdfa0cd5625aeaeb2c79f407d6322
HOSEON LEE [Thu, 29 Aug 2013 04:37:54 +0000 (04:37 +0000)]
Merge "Added logs to help debugging regarding dynamic linking loader error."
leerang song [Tue, 27 Aug 2013 08:18:37 +0000 (17:18 +0900)]
Verify the size of DynamicBox
* How it works:
- When wrt-installer installs DynamicBox webapp, parse the boxsize attribute in config.xml.
- Verify the boxsize using web_provider_plugin_check_supported_size API provided from web-provier.
- If unsupported size is found, installer sends a ThrowMsg
- Web application install should fail.
[Issue#] N/A
[Problem] When there is unsupported boxsize specified in config.xml, webapp is still installed successfully.
[Cause] The boxsize attribute of DynamicBox in config.xml is not checked at the install time.
[Solution] Verify the boxsize attribute of DynamicBox in config.xml
[SCMRequest] N/A
Change-Id: If18ea9136687bfacf8d516bcbbadf8042cbb3e12
Tomasz Iwanek [Mon, 19 Aug 2013 09:58:29 +0000 (11:58 +0200)]
Icon extension for package manager and manifest fix
[Issue#] LINUXWRT-804 / WGL-428
[Bug] Hardcoded .png extension
[Cause] Missing an API that can retrieve file extension.
[Solution] Make use the file extension of used icon
[SCMRequest] Depends upon https://review.tizendev.org/gerrit/86777
[Verification]
1. Install widget from https://bugs.tizendev.org/jira/browse/WGL-428.
2. Manifest file in /opt/share/packages/J7tHY89x22.xml should contain icon with .svg extension
(<icon>J7tHY89x22.Y2y1.svg</icon>).
Change-Id: I06ccc45566afe8b49f39515e192ce58a1c1cac86
Tae-Jeong Lee [Mon, 26 Aug 2013 14:03:57 +0000 (23:03 +0900)]
Added logs to help debugging regarding dynamic linking loader error.
[Issue#] N/A
[Problem] When a dependency error occured during wrt-plugins installation, the dynamic linking loader works strangely after that.
Because of that, to help debugging, some logs were added.
[Cause] N/A
[Solution] Added some 'stderr' logs regarding dynamic linking loader error. It will show the reason of fail to dlopen().
Change-Id: I964db7d7434274549197d79655cf7eea50884ea7
Tomasz Iwanek [Fri, 23 Aug 2013 11:50:01 +0000 (13:50 +0200)]
Progress callback log set to 'Pedantic' level
[Issue#] N/A
[Feature] Those lines makes no information gain usually but makes log harder to read
[Cause] N/A
[Solution] Lvel log logging changed
[Verification] Build repo.
Change-Id: I3528b0e0583185593795a18809f2212f0ff311a8
sung-su.kim [Thu, 22 Aug 2013 04:45:48 +0000 (13:45 +0900)]
[Release] wrt-installer_0.1.119
Change-Id: Iec9544adbe20431359f2cc3f928f2331a75e0a9c
Soyoung Kim [Thu, 22 Aug 2013 04:25:22 +0000 (13:25 +0900)]
Fixed copy icon for dynamic box failed.
[Issue#] P130821-05213
[Problem] To copy dynamic's icon fail when update.
[Cause] there was no shared/data directory.
Because original directory is empty so to copy directory doesn't work.
[Solution] shared directory always is made whenever install or update.
[SCMRequest] N/A
Change-Id: I96b90a762d9bd66e8543902fce51a4509c6ca855
sung-su.kim [Wed, 21 Aug 2013 01:41:03 +0000 (10:41 +0900)]
[Release] wrt-installer_0.1.118
Change-Id: I9fe5fd7efa7ce5f419b28c6983440553eeb3e70d
Hoseon LEE [Wed, 21 Aug 2013 01:29:35 +0000 (10:29 +0900)]
Update the screen size feature list
[Issue] N/A
[Problem] N/A
[Cause] Screen size feature list is fixed by platform.
[Solution] Screen size feature list is updated.
[SCMRequest] N/A
Change-Id: If341b6b67a8571247440d24c0bfd84d9e1deccd8
HOSEON LEE [Wed, 21 Aug 2013 01:33:59 +0000 (01:33 +0000)]
This commit has a dependency of wrt-commons.
Therefore, this commit is reverted.
Please merge wrt-commons commit before this commit.
Revert "Icon extension for package manager and manifest fix"
This reverts commit
e11660bf9e6ad7fa8183ae7eecd435763a1bf027.
Change-Id: I08a01cbdecc0f3222bbae8522dd1ef9c29bc79d5
Tomasz Iwanek [Mon, 19 Aug 2013 09:58:29 +0000 (11:58 +0200)]
Icon extension for package manager and manifest fix
[Issue#] LINUXWRT-804 / WGL-428
[Bug] Hardcoded .png extension
[Cause] N/A
[Solution] Use extension of used icon
[SCMRequest] This requries wrt-commons change: https://review.tizendev.org/gerrit/86777
[Verification] Install widget from https://bugs.tizendev.org/jira/browse/WGL-428.
Manifest file in /opt/share/packages/J7tHY89x22.xml should contain icon with .svg extension
(<icon>J7tHY89x22.Y2y1.svg</icon>).
Change-Id: Ifef3f38e1566b92817f62aa01c1ac73bc073d71b
sung-su.kim [Fri, 16 Aug 2013 04:18:38 +0000 (13:18 +0900)]
Install failure during RDS update
- RDS (Rapid Development Support): This feature supports fast updating with IDE.
When a few sources are updated/changed, application doesn't need full update.
[Issue] N/A
[Problem] When a new file needs to be added which also includes a new directory,
then the installer cannot handle them.
[Cause] Missing logic to parse the newly created directory in the destination path.
[Solution] Add logic to create directory and then create file when necessary.
[SCMRequest] N/A
Change-Id: Ifd8fb2808773127dca09c95db3efb50d27424e52
Soyoung Kim [Fri, 16 Aug 2013 11:18:02 +0000 (20:18 +0900)]
Update smack APIs according to the new naming rule
[Issue#] N/A
[Problem] The naming rule for SMACK APIs is changed.
[Cause] Tomasz Swierczek (SRPoL) Systems team informed the change:
The new APIs were introduced to standardize the naming scheme in the library,
and make all libprivilege API functions start with a common prefix "perm_".
[Solution] Update SMACK APIs according to the change.
[SCMRequest] N/A
Change-Id: Ieb73f1a32dcedbdbfb61f23300d1d40a4db8db21
Soyoung Kim [Fri, 16 Aug 2013 09:34:03 +0000 (18:34 +0900)]
[Release] wrt-installer_0.1.117
Change-Id: I1717ecfdf79bf08a8ffa133ba7c7184ab2caf4be
Soyoung Kim [Tue, 13 Aug 2013 06:57:05 +0000 (15:57 +0900)]
Fixed package id is empty in callback of package manager.
[Issue#] TTS-1840
[Problem] package is empty in callback of package manager.
please check https://bugs.tizendev.org/jira/browse/TTS-1840
[Cause] signal have been sent before setting package id.
[Solution] signal is sent after set package id.
[SCMRequest] N/A
Change-Id: I24763d3ee499d4789e59828892000f0d29ea4d57
Soyoung Kim [Fri, 16 Aug 2013 04:36:16 +0000 (13:36 +0900)]
Fixed restore /shared/res directory during update hybrid web app.
[Issue#] P130809-02632
[Problem] icon doesn't update after update hybrid web app.
[Cause] icon files is in shred/res directory at hybrid web app.
But shared/res directory was restored to original directory during update.
So new icon file is missing.
[Solution] shared/res directory should not restore during update logic.
[SCMRequest] N/A
Change-Id: Iad574356177b4ef6ed9d6dd7c06cdd34332c7b89
Soyoung Kim [Wed, 14 Aug 2013 05:04:50 +0000 (14:04 +0900)]
Fixed update package info when hybrid webapp.
[Issue#] N/A
[Problem] package information isn't changed after update hybrid web app.
[Cause] There is a bug in check condition during update package information.
[Solution] remove condition for hybrid webapp.
(Because to update package information execute only in wrt-installer when hybrid web app.)
[SCMRequest] N/A
Change-Id: Ibdca78752bdab9194c0d2d09fdd7633f168059f1
Soyoung Kim [Wed, 14 Aug 2013 05:46:39 +0000 (14:46 +0900)]
Fixed build break about "Remove wrt-preinstall-widgets.service"
[Issue#] N/A
[Problem] build failed ater "Remove wrt-preinstall-widgets.service"
[Cause] spec file has "wrt-preinstall-widgets.service"
[Solution] remove "wrt-preinstall-widgets.service" from spec file.
[SCMRequest] N/A
Change-Id: I80637f99e041407added1b19b597dcdda3e03f46
sung-su.kim [Wed, 14 Aug 2013 04:50:18 +0000 (13:50 +0900)]
[Release] wrt-installer_0.1.116
Change-Id: I3de20d709f0599d3d61b0eba116c04626fbbeb44
Tomasz Iwanek [Mon, 12 Aug 2013 11:20:39 +0000 (13:20 +0200)]
Pkgmgr's wgt backendlib - fixing name locale for package
[Issue#] LINUXWRT-792 / WGL-406
[Bug] Locale isn't correctly dipatched
[Cause] Lookup should be done without subtags too
(that wasn't fixed when writing LocalisationTagsSingleton).
[Solution] Use code from localisation module
[Verification] Try to install widget ta-de-004.wgt (located in wrt-extra)
from myfiles app (copy file to /opt/usr/media/Others/).
Displayed widget name in popup should be "PASS".
Change-Id: I4468619e441f32f1d744bba4eba08a8579fbe403
Soo-Hyun Choi [Wed, 14 Aug 2013 02:22:53 +0000 (11:22 +0900)]
Build Fix after
ea9d0ebbd87705b6d36ad280bfab4151faaa8808
[Issue#] N/A
[Problem] Build failed after
ea9d0ebbd87705b6d36ad280bfab4151faaa8808
[Cause] spec file still has "wrt-preinstall-widgets.service"
[Solution] Removed "wrt-preinstall-widgets.service" from the spec file
[SCMRequest] N/A
Change-Id: I36b83e5a95028af6c61069f75d1f671a74930f23
Jihoon Chung [Fri, 9 Aug 2013 13:51:51 +0000 (22:51 +0900)]
Create & update widget interface database
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] To implement update widget interface key & value, database
should create in install time. Also this commit support update widget
interface data.
[SCMRequest] must be imported with wrt-commons
https://review.tizendev.org/gerrit/#/c/86092/
Change-Id: I575ae2ec2f9880d8e26fd6ede3f23549e9134d23
Soyoung Kim [Tue, 13 Aug 2013 12:26:45 +0000 (21:26 +0900)]
Remove wrt-preinstall-widgets.service
[Issue#] N/A
[Problem] Booting time is delayed too much by wrt-preinstall-widgets.service
[Cause] wrt_preinstall_widgets.sh is executed several times at boot time
[Solution] Remove preinstall service as we do not need this anymore.
e.g.,) preinstall service is available with CSC.
We received a request of removal this service from kyungmin.park@samsung.com
[SCMRequest] N/A
Change-Id: I3152068778565970bb4f2f2c89be12e539f4945d
sung-su.kim [Sun, 11 Aug 2013 23:28:36 +0000 (08:28 +0900)]
[Release] wrt-installer_0.1.115
Change-Id: I2204f2b141bee23f69349a3cc4d761b00cc04c41
Jihoon Chung [Sun, 4 Aug 2013 09:11:01 +0000 (18:11 +0900)]
Implement disposition element parser
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Implement disposition element parser
disposition element is sub-element of tizen:app-control.
element name : tizen:disposition
value :
inline - application running with submode
window - application running with normal state
example :
<tizen:app-control>
<tizen:src name="test.html"/>
<tizen:operation name="http://tizen.org/appcontrol/operation/test"/>
<tizen:disposition name="inline"/>
</tizen:app-control>
dispostion element requires platform level
[SCMRequest] N/A
Change-Id: Ib36215380572afffc23ce831d28488903b5dd4f8
sung-su.kim [Wed, 7 Aug 2013 23:55:41 +0000 (08:55 +0900)]
[Release] wrt-installer_0.1.114
Change-Id: I85df70b6294c6979cb4ceac80461a1b03c20b00b
Soyoung Kim [Mon, 5 Aug 2013 11:32:00 +0000 (20:32 +0900)]
separate generation manifest and update pkginfo.
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] To update package info separate from generation manifest file.
Because package info is double updated when hybrid app.
[SCMRequest] N/A
Change-Id: Ib32dd11d6108630480918bff9529aa85a6c56185
Soyoung Kim [Thu, 1 Aug 2013 06:11:33 +0000 (15:11 +0900)]
Add start/end task for log.
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add log for marking task.
[SCMRequest] N/A
Change-Id: Ib4891a2389c0821290710a4973d9fd9ceea4ea52
Soyoung Kim [Wed, 7 Aug 2013 05:36:54 +0000 (14:36 +0900)]
Apply the cflag(TIZEN_ENGINEER_MODE)
[Issue#] N/A
[Problem] can't display dlog.
[Cause] N/A
[Solution] add cflag for feature of USER/ENG binary.
[SCMRequest] N/A
Change-Id: Ic91e36f124fd9635d39f8b97217e5e2fc790b52b
Hoseon LEE [Wed, 7 Aug 2013 02:54:19 +0000 (11:54 +0900)]
Privilege and Feature list files are added for IDE
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Privilege and Feature list files are added for IDE
The IDE show the available list of Privilege and feature.
WRT maintains this list.
[SCMRequest] N/A
Change-Id: I5d921046bb86bd502c99dfdc87072edf035f99f9
sung-su.kim [Mon, 5 Aug 2013 23:19:36 +0000 (08:19 +0900)]
[Release] wrt-installer_0.1.113
Change-Id: I70eeae123b1135a9225487fe802aad0e34beef12
Jihoon Chung [Sun, 4 Aug 2013 07:38:31 +0000 (16:38 +0900)]
Remove deprecated API
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Remove deprecated API
Remove registerOrUpdateWidget, backupAndUpdateWidget and
restoreUpdateWidget.
[SCMRequest] N/A
Change-Id: I8b0bfe580ec2ec04b1cad1c1864f5c71d09e896b
Rafal Bednarski [Wed, 31 Jul 2013 09:41:58 +0000 (11:41 +0200)]
Misspell in wrt-installer
[Issue#] LINUXWRT-745
[Problem] Misspell was instead of "true" was "ture".
[Cause] N/A
[Solution] Changed "ture" for "true"
[Verification] Build repository
Change-Id: I965d275103a5587e1c9f519e7d88b0903aa6ddc4
Soyoung Kim [Fri, 2 Aug 2013 11:55:19 +0000 (20:55 +0900)]
[Release] wrt-installer_0.1.112
Change-Id: I31450af41bc7bfcf47f8cb459d1ee00faff75f58
Soyoung Kim [Fri, 2 Aug 2013 07:33:12 +0000 (16:33 +0900)]
Fixed failure return value change to error code.
[Issue#] N/A
[Problem] CSC installation can't get error code.
[Cause] wrt-installer command doesn't return error code.
[Solution] return error code.
[SCMRequest] N/A
Change-Id: Id39749a22c0dbc5917a387d9c7022f0a4072ce6e
sung-su.kim [Wed, 31 Jul 2013 00:05:47 +0000 (09:05 +0900)]
[Release] wrt-installer_0.1.111
Change-Id: I0b4722449f03f4d85b726f24efba0f41048b8225
Tomasz Iwanek [Tue, 30 Jul 2013 11:14:17 +0000 (13:14 +0200)]
DPL Encryption module depenedency dropped
[Issue#] N/A
[Bug] Not use module
[Cause] N/A
[Solution] Remove dependency for wrt-installer
[Verification] Build.
Change-Id: I694f77723ba30eed3451f7b4b80425f950827070
sung-su.kim [Fri, 26 Jul 2013 07:54:52 +0000 (16:54 +0900)]
[Release] wrt-installer_0.1.110
Change-Id: I308f114c0f9031c35b084b2d3a45f3f4a1fa4624
sung-su.kim [Fri, 26 Jul 2013 07:41:43 +0000 (16:41 +0900)]
Add callerId exception
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add callerId exception
[SCMRequest] N/A
Change-Id: I58b7f23ff190e4d0458d71f41403cf144a10d541
sung-su.kim [Thu, 25 Jul 2013 23:20:03 +0000 (08:20 +0900)]
[Release] wrt-installer_0.1.109
Change-Id: Ia62ddbc7e18d4de50f948e10d6f7e18f2d468d20
sung-su.kim [Thu, 18 Jul 2013 01:46:44 +0000 (10:46 +0900)]
Add invalid wgt package exception code
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add invalid wgt package exception code
[SCMRequest] N/A
Change-Id: I73965ae534e2e7a4f7c00ac5659e4da66faefb88
sung-su.kim [Thu, 25 Jul 2013 00:39:12 +0000 (09:39 +0900)]
[Release] wrt-installer_0.1.108
Change-Id: I2a65c359d49206fe0a0bc6e0a7542dcf0e63aeb9
Zbigniew Kostrzewa [Fri, 19 Jul 2013 07:49:17 +0000 (09:49 +0200)]
Utilize extracted i18n db in LanguageSubtagRstTree.
[Issue#] N/A
[Problem] iana_records table, on which LanguageSubtagRstTree relies,
has been extracted into a separate DB
[Cause] N/A
[Solution] utilize new DB (replace references from GlobalDAOReadOnly to
I18nDAOReadOnly)
[SCMRequest] Depends on: https://review.tizendev.org/82091
[Verification]
1. Build repository
2. Run command
`wrt-installer-tests-general --output=text`
Pay attention espaecially to test cases ValidateLanguageTag_Invalid
and ValidateLanguageTag_Valid; however, run whole test suite.
Change-Id: Ie6d82b26e8effc0d62eaaba0701c122e50172154
sung-su.kim [Wed, 24 Jul 2013 00:13:42 +0000 (09:13 +0900)]
[Release] wrt-installer_0.1.107
Change-Id: I03e1b9170fd7afdca8c55f306e0df8dee630e907
Soyoung Kim [Fri, 19 Jul 2013 12:24:37 +0000 (21:24 +0900)]
Add store client id in manifest.xml
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] add storeclient-id field in manifest.xml
storeclient-id is caller package id.
[SCMRequest] N/A
Change-Id: I4eac194ffe7289159de7fba25f9adc9405ebf236
Soyoung Kim [Fri, 19 Jul 2013 11:25:59 +0000 (20:25 +0900)]
Fixed error code when missing start file.
[Issue#] N/A
[Problem] error code is wrong when missing start file.
[Cause] N/A
[Solution] error code change to "package invalid"
[SCMRequest] N/A
Change-Id: I009c38123e235d65d557b01ceec27de0a078c67b
Soyoung Kim [Thu, 18 Jul 2013 06:30:54 +0000 (15:30 +0900)]
Change condition of reinstall preload app after uninstall
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] using check system app api.
[SCMRequest] N/A
Change-Id: Ie909a0308ec331955e056e7fb7fea83240befcc1
Soyoung Kim [Fri, 19 Jul 2013 03:03:48 +0000 (12:03 +0900)]
Change log tag WRT to WRT_INSTALLER
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] log tag is changed WRT_INSTALLER from WRT
[SCMRequest] N/A
Change-Id: Ic2661c6664776263088e4a0fcfd8263659f8f991
Soyoung Kim [Wed, 17 Jul 2013 11:53:55 +0000 (20:53 +0900)]
code cleanup
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] unused code cleanup
[SCMRequest] N/A
Change-Id: I5277748a059a453103873a6373dfd729c6666a65
sung-su.kim [Mon, 22 Jul 2013 23:58:06 +0000 (08:58 +0900)]
[Release] wrt-installer_0.1.106
Change-Id: Icfb026cee3a31506521de6d4bf14594d7118a4ba
Zbigniew Kostrzewa [Mon, 22 Jul 2013 10:13:08 +0000 (12:13 +0200)]
Fix build-break. Remove unused component.
[Issue#] N/A
[Problem] Build break
[Cause] Use of removed API
[Solution] The component that is using removed API is not used. Comment
it out until proper fix is applied and component is utilized again.
[SCMRequest] N/A
[Verification]
1. Build repository
2. Run command:
`wrt-installer-tests-general --output=text`
Change-Id: If4efa53eb2e5939d6baa0ed8488452d7926821a5
sung-su.kim [Mon, 22 Jul 2013 08:56:26 +0000 (17:56 +0900)]
[Release] wrt-installer_0.1.105
Change-Id: Iaa28e9cf66d88ac60f52cf7cc0baeb8c9967211c
Jihoon Chung [Mon, 22 Jul 2013 08:38:28 +0000 (17:38 +0900)]
Fixed encryption fail issue
[Issue#] N/A
[Problem] Encrypt application is failed to install
[Cause] Certify level checks return error. Because encrypt is done
before certify level task and md5 checking is failed
[Solution] Move certify level checking before encryption
[SCMRequest] N/A
Change-Id: I0500eeca1264e4dadec5d7871372890b52591a00
sung-su.kim [Mon, 22 Jul 2013 01:38:57 +0000 (10:38 +0900)]
[Release] wrt-installer_0.1.104
Change-Id: If247f03657dd1bf8018a3bcc80c741fae76f04ab
Jihoon Chung [Sun, 14 Jul 2013 11:15:14 +0000 (20:15 +0900)]
Implement task to check "tizen:setting"
[Issue#] N/A
[Problem] Current wrt-installer only checks "tizen:privilege" level,
even manifest received many requirement of sensitive "tizen:setting"
[Cause] N/A
[Solution] Implement task "task_certify_level"
To avoid sensitive manifest setting is used by untrust application,
installer needs to check privilege level of application. This commit
doesn't use global, static and member value intentionally
to reduce attack.
[SCMRequest] N/A
Change-Id: Icb63c2ad3b02a57c90d39f729db159a84576f348
sung-su.kim [Fri, 19 Jul 2013 03:07:42 +0000 (12:07 +0900)]
[Release] wrt-installer_0.1.103
Change-Id: I4033ba0dea93dd5971c1ed4dc81a96db536847b0
Kamil Nowac [Mon, 15 Jul 2013 13:55:31 +0000 (15:55 +0200)]
Fix for wrong notification during installation
[Issue#] LINUXWRT-656
[Problem] Wrong notification during widget instalation
on the top of teh screen
[Cause] N/A
[Solution] Added chcecking for system language.
[Verification] Install widget from:
https://bugs.tizendev.org/jira/secure/attachment/140622/WEB-3429.zip
During installation should be displayed notification depending on curent language.
Change-Id: I5a1a73a95cdd8cef1796786152e721bb4e1eb52a
sung-su.kim [Wed, 17 Jul 2013 02:52:57 +0000 (11:52 +0900)]
[Release] wrt-installer_0.1.102
Change-Id: I8d40292ac3da46349eab1a5e718ca0995ee2a226
Jihoon Chung [Wed, 17 Jul 2013 02:32:35 +0000 (11:32 +0900)]
Replace LogInfo to LogDebug
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Replace LogInfo to LogDebug
Platform policy isn't used LogInfo
[SCMRequest] N/A
Change-Id: I0aa6c90972a6189786cde68766f8f893d6aa7362
Tomasz Iwanek [Wed, 10 Jul 2013 10:46:15 +0000 (12:46 +0200)]
IWacSecurity interface name change to IWidgetSecurity
[Issue#] LINUXWRT-629
[Bug] Irrelevant name
[Cause] N/A
[Solution] N/A
[Verification] Build repository:
[SCMRequest] This change depends on: https://review.tizendev.org/#/c/80379
Change-Id: I1b52a267b6ba450376b91c872b97e64b64760871