platform/core/appfw/pkgmgr-tool.git
4 years agoRelease version 0.5.15 84/223584/1 accepted/tizen/unified/20200212.125954 submit/tizen/20200131.050227 submit/tizen/20200210.091657 submit/tizen/20200211.010149
Ilho Kim [Fri, 31 Jan 2020 04:33:05 +0000 (13:33 +0900)]
Release version 0.5.15

Changes:
 - Fix static analyzer issue

Change-Id: If0a0e06562a70c9e69a4bb26a7d9851f4d15f038
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix static analyzer issue 68/223368/1
Sangyoon Jang [Wed, 29 Jan 2020 06:08:46 +0000 (15:08 +0900)]
Fix static analyzer issue

Change-Id: Ib9bf30ef24cceb22def37c9f06febb5a65d42571
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRelease version 0.5.14 62/222862/1 accepted/tizen/unified/20200121.053126 submit/tizen/20200121.023415
Junghyun Yeon [Tue, 21 Jan 2020 02:29:40 +0000 (11:29 +0900)]
Release version 0.5.14

Changes:
 - Fix build error when applying new toolchain

Change-Id: Ice5ba863fea484bb9991fc41b3bae0f19c406eed
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix build error when applying new toolchain 59/222859/1
Junghyun Yeon [Tue, 21 Jan 2020 02:06:59 +0000 (11:06 +0900)]
Fix build error when applying new toolchain

Change-Id: I6ca6d6122bbe91c379bb73e908c4530e611f47dc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 0.5.13 12/222712/1 accepted/tizen/unified/20200120.133146 submit/tizen/20200117.084916
Ilho Kim [Fri, 17 Jan 2020 08:42:45 +0000 (17:42 +0900)]
Release version 0.5.13

Changes:
 - Resolve static analysis issue

Change-Id: Id55b7bedc3d467c5361076835cd7f906a7c33e5d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoResolve static analysis issue 45/222645/1
Junghyun Yeon [Fri, 17 Jan 2020 02:24:05 +0000 (11:24 +0900)]
Resolve static analysis issue

Change-Id: If3eca9064e7a2de4e38dddad60af67302abf3cd8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 0.5.12 50/221750/1 accepted/tizen/unified/20200108.131538 submit/tizen/20200107.094018
Ilho Kim [Tue, 7 Jan 2020 08:46:14 +0000 (17:46 +0900)]
Release version 0.5.12

Changes:
 - Remove compile warning messages

Change-Id: I9e47b1c64539e8bc8534e1b043c9de5619285c4a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRemove compile warning messages 70/221370/3
Ilho Kim [Thu, 2 Jan 2020 02:11:33 +0000 (11:11 +0900)]
Remove compile warning messages

Change-Id: Ie96628caee7db57a3c9d17c3dd6d6d9ffe596022
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 0.5.11 09/220109/1 accepted/tizen/5.5/unified/20200105.221121 accepted/tizen/unified/20191216.222223 submit/tizen/20191213.074937 submit/tizen_5.5/20200103.002242 submit/tizen_5.5/20200103.003447
Ilho Kim [Fri, 13 Dec 2019 07:02:53 +0000 (16:02 +0900)]
Release version 0.5.11

Changes:
 - Remove using global variables
 - Fix possibility of memory leak
 - Fix typo

Change-Id: I07589445a0c834af13a51774baaafdedcee2bef1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix typo 08/219308/2
Junghyun Yeon [Wed, 4 Dec 2019 07:41:30 +0000 (16:41 +0900)]
Fix typo

Change-Id: Ic284dceff53fd5423e5a7cf2116b797bbae15475
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix possibility of memory leak 91/219691/1
Ilho Kim [Mon, 9 Dec 2019 07:19:49 +0000 (16:19 +0900)]
Fix possibility of memory leak

Change-Id: I5bfd5f3c51a20ab2d8392c6abe394a7f1790c61b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRemove using global variables 40/219340/5
Sangyoon Jang [Wed, 4 Dec 2019 10:06:11 +0000 (19:06 +0900)]
Remove using global variables

Change-Id: I3c64c6809f280613f97a3af45486b2615063c144
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRelease version 0.5.10 98/218498/1 accepted/tizen/unified/20191201.221514 submit/tizen/20191128.101053 submit/tizen_5.5/20191204.061724 submit/tizen_5.5/20191205.065343
Junghyun Yeon [Mon, 25 Nov 2019 02:10:54 +0000 (11:10 +0900)]
Release version 0.5.10

Changes:
 - Add upgrade script for version 30005

Change-Id: I0ef463b31c9bb379b692a5455b5bd257eed31d78
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd upgrade script for version 30005 55/209855/9
Junghyun Yeon [Fri, 12 Jul 2019 02:11:32 +0000 (11:11 +0900)]
Add upgrade script for version 30005

This version will migrate shared/data directory

Change-Id: I51b58c573edf64d9d71a339f7c59ce3ff3de41e6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.5.9 67/217467/1 accepted/tizen/5.5/unified/20191118.084810 accepted/tizen/unified/20191115.083948 submit/tizen/20191112.050420 submit/tizen/20191114.120558 submit/tizen/20191115.055644 submit/tizen_5.5/20191112.065048 submit/tizen_5.5/20191114.121100 submit/tizen_5.5/20191115.055905
Ilho Kim [Tue, 12 Nov 2019 04:28:28 +0000 (13:28 +0900)]
Release version 0.5.9

Changes:
 - Fix crash when creating delta pkg
 - Fix code to initialize variable for every loop

Change-Id: I10d22e6cc7094e558219b03a7fb35c2f0cf049e9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix code to initialize variable for every loop 06/216606/1
Junghyun Yeon [Tue, 29 Oct 2019 09:54:23 +0000 (18:54 +0900)]
Fix code to initialize variable for every loop

Without this change, previous operation type will not be initialized
and it could affect next loop.

Change-Id: Id514928d11b67fbc58d81a92deb3ee0506459e13
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoFix crash when creating delta pkg 67/216467/1
Sangyoon Jang [Fri, 25 Oct 2019 07:46:48 +0000 (16:46 +0900)]
Fix crash when creating delta pkg

Change-Id: I91269b04a76b4b9e23fbac123514a44135bc5985
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 0.5.8 31/213431/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.024043 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084000 accepted/tizen/unified/20190906.112000 submit/tizen/20190905.075836 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
Ilho Kim [Thu, 5 Sep 2019 07:31:05 +0000 (16:31 +0900)]
Release version 0.5.8

Changes:
 - Add some error log of handling backup file of preload rw pkg list
 - Fix pkgcmd help's text, align
 - Fix static analysis issue

Change-Id: I646889839d3e4a702497c59d925cc089dd8498b9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix static analysis issue 31/213231/2
Sangyoon Jang [Tue, 3 Sep 2019 06:03:07 +0000 (15:03 +0900)]
Fix static analysis issue

Fix null pointer dereference.

Change-Id: I4088bc6a36e6f1cd936643f00ddb623af97c55dd
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix pkgcmd help's text, align 38/213238/2
Ilho Kim [Tue, 3 Sep 2019 06:35:56 +0000 (15:35 +0900)]
Fix pkgcmd help's text, align

skip-optimization option's short option is "-S"

Change-Id: Idfc226ccebd93e7d95280ec205affdb95c93e9e2
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoAdd some error log of handling backup file of preload rw pkg list 18/213018/2
Sangyoon Jang [Thu, 29 Aug 2019 08:26:53 +0000 (17:26 +0900)]
Add some error log of handling backup file of preload rw pkg list

Change-Id: I6c0ef27dc5a90bf007966d0e51a9ecd8884c923d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 0.5.7 87/212487/1 accepted/tizen/unified/20190823.092348 submit/tizen/20190822.055306
Ilho Kim [Thu, 22 Aug 2019 04:26:41 +0000 (13:26 +0900)]
Release version 0.5.7

Changes:
 - Add new install option

Change-Id: If14f47049250a9f6460a29fa7e88f4e5805537c7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoAdd new install option 26/212326/5
Ilho Kim [Tue, 20 Aug 2019 08:16:31 +0000 (17:16 +0900)]
Add new install option

This option will be used for fast installation without optimization

Related changes
    [app-installers] https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/212328/
    [pkgmgr-tool] https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-tool/+/212326/
    [slp-pkgmgr] https://review.tizen.org/gerrit/#/c/platform/core/appfw/slp-pkgmgr/+/212327/

Change-Id: If850c33ca51769b7e968ec944b01d016e295aa5c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 0.5.6 73/212273/1 accepted/tizen/unified/20190820.115014 submit/tizen/20190820.015710
Ilho Kim [Tue, 20 Aug 2019 01:36:24 +0000 (10:36 +0900)]
Release version 0.5.6

Changes:
 - Fix db migration script
 - Add cert DB upgrade script

Change-Id: Ibf9f4333e2cb93d80db66ee86f0e2c6a8c236537
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoAdd cert DB upgrade script 32/211932/3
Ilho Kim [Mon, 12 Aug 2019 06:42:54 +0000 (15:42 +0900)]
Add cert DB upgrade script

Change-Id: Ia91e0d9120583401cbc009bd819f2205cf5b8d6d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix db migration script 28/211928/1
Ilho Kim [Mon, 12 Aug 2019 06:06:29 +0000 (15:06 +0900)]
Fix db migration script

Change package_dependency_info's primary key

Change-Id: I136c223cedd7f5681668ae32f1b01044fe316097
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 0.5.5 10/211810/1 accepted/tizen/unified/20190812.235624 submit/tizen/20190809.084335
Ilho Kim [Fri, 9 Aug 2019 08:15:44 +0000 (17:15 +0900)]
Release version 0.5.5

Changes:
 - Fix error when doing FOTA
 - Fix static analysis issue
 - Fix typo

Change-Id: I75bd87dd660ec853ec397204dda9c735da79820c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix typo 97/211497/1
Kichan Kwon [Tue, 6 Aug 2019 00:53:37 +0000 (09:53 +0900)]
Fix typo

Change-Id: I99d45aa84d32b61e83182b545c6499904aa2b8a9
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoFix static analysis issue 37/211037/3
Ilho Kim [Mon, 29 Jul 2019 07:27:38 +0000 (16:27 +0900)]
Fix static analysis issue

Use strerror_r instead of strerror for thread safety

Change-Id: Icf2e750fb4a18250543355ad613db4bae14cf984
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix error when doing FOTA 48/210848/7
Ilho Kim [Thu, 25 Jul 2019 07:52:05 +0000 (16:52 +0900)]
Fix error when doing FOTA

It doesn't have ALL_PRELOAD_RW_PKG in the past,
the case this file not exist is not error

Make preload rw package list from db in that case

Change-Id: I53fc539e22481070fde998518b05beaeef3eedfa
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 0.5.4 53/210553/1 accepted/tizen/unified/20190723.053629 submit/tizen/20190722.090051
Junghyun Yeon [Mon, 22 Jul 2019 08:44:52 +0000 (17:44 +0900)]
Release version 0.5.4

Changes:
 - Revert "Add upgrade script for version 30005"

Change-Id: I42c096924942b46cb55c1cae74cea43d579a1af5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRevert "Add upgrade script for version 30005" 26/210526/2
ilho kim [Mon, 22 Jul 2019 05:44:36 +0000 (05:44 +0000)]
Revert "Add upgrade script for version 30005"

This reverts commit f2268b9e4993ee8b9688858bc0c744b2056a7322.

Change-Id: Id494bb8ffb1b081fda29da1426515de1e1b1df12

5 years agoRelease version 0.5.3 87/209887/1 accepted/tizen/unified/20190717.115204 submit/tizen/20190712.071407 submit/tizen/20190716.022534
Ilho Kim [Fri, 12 Jul 2019 06:46:24 +0000 (15:46 +0900)]
Release version 0.5.3

Changes:
 - Add upgrade script for version 30005
 - Handle preload-rw package deleted by user when OTA

Change-Id: I334c72992de747623ea60cd31e4af09709fe9b0e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoHandle preload-rw package deleted by user when OTA 14/206714/26
Ilho Kim [Thu, 23 May 2019 12:20:14 +0000 (21:20 +0900)]
Handle preload-rw package deleted by user when OTA

Create a file to store preload-rw-packages that has been installed,
this file is used to identify whether the preload-rw-package
currently installing is a new package or a deleted package by user

Change-Id: If9436067b39db7e808b762fbb0db9624a07d751e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoAdd upgrade script for version 30005 12/207512/2
Junghyun Yeon [Wed, 5 Jun 2019 11:37:54 +0000 (20:37 +0900)]
Add upgrade script for version 30005

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/c/platform/core/appfw/pkgmgr-info/+/207513/

Change-Id: Ib36223113944f895b5eafc0455ba0a897378162a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.5.2 53/204053/1 accepted/tizen/unified/20190422.231505 submit/tizen/20190419.024820
Junghoon Park [Fri, 19 Apr 2019 02:29:00 +0000 (11:29 +0900)]
Release version 0.5.2

Changes:
 - Add redefining PATH env

Change-Id: I96fc67634510fb2602a9ccc077cacf2825ee3511
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
5 years agoAdd redefining PATH env 64/203964/1
Ilho Kim [Thu, 18 Apr 2019 08:19:24 +0000 (17:19 +0900)]
Add redefining PATH env

Add in this files
 - pkgmgr.patch.sh.in
 - update.sh.in

Change-Id: Ibce3a0e9f34d8c9558ee2a24ee7ac01220be8a41
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 0.5.1 33/203633/1 accepted/tizen/unified/20190417.132338 submit/tizen/20190416.100651 submit/tizen/20190416.233814
Junghyun Yeon [Tue, 16 Apr 2019 08:56:55 +0000 (17:56 +0900)]
Release version 0.5.1

Changes:
 - Change log for install_preload_pkg
 - Replace exec into /bin/sh in upgrade script
 - Adjust 30004 upgrade script

Change-Id: I3205a272f7f81de7a5298ff6be1e7dbe0e9c544e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdjust 30004 upgrade script 39/203139/1
Hwankyu Jhun [Wed, 10 Apr 2019 06:29:09 +0000 (15:29 +0900)]
Adjust 30004 upgrade script

The component info table is removed.

Change-Id: I82a411df1cdd09864034a9676f1f4bc30feae870
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoReplace exec into /bin/sh in upgrade script 29/202429/1
Junghyun Yeon [Thu, 28 Mar 2019 10:40:19 +0000 (19:40 +0900)]
Replace exec into /bin/sh in upgrade script

- exec replaces shell itself so sciprts will terminate when
  command terminates executed by exec.

Change-Id: Ic6e650237bad77a835afa0bb240b9229ae7d842c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoChange log for install_preload_pkg 66/202266/1
Junghyun Yeon [Tue, 26 Mar 2019 11:19:18 +0000 (20:19 +0900)]
Change log for install_preload_pkg

Current logs don't specify which directory is not exists.

Change-Id: I256c9deb696d7685efcffd45330659132eb0d0d0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 0.5.0 95/201495/1 accepted/tizen/unified/20190318.150700 submit/tizen/20190315.084013
Hwankyu Jhun [Fri, 15 Mar 2019 03:05:43 +0000 (12:05 +0900)]
Release version 0.5.0

Changes:
 - Add missing upgrade script for version 30003
 - Add package dependency attribute to upgrade script
 - Add codes to handle ReadonlyUpdateInstalled pkg
 - Add db schema to version 30004
 - Fix db migration script
 - Add db schema to version 30004

Change-Id: I60b2ea1a7aaa3fcca6f11193d040bc42ce846f62
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoAdd db schema to version 30004 72/201272/2
Hwankyu Jhun [Tue, 12 Mar 2019 05:21:39 +0000 (14:21 +0900)]
Add db schema to version 30004

Added:
 - package_app_component_info table

Change-Id: I863b8a0ace0ba93969b8475049c4561e1f1c1c2c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 years agoFix db migration script 93/201293/1
Junghyun Yeon [Tue, 12 Mar 2019 06:58:25 +0000 (15:58 +0900)]
Fix db migration script

Change-Id: I44b9153494d58bd7f2fe59c7b9fdafc51463373b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdd db schema to version 30004 99/199999/2
Junghyun Yeon [Mon, 18 Feb 2019 05:48:12 +0000 (14:48 +0900)]
Add db schema to version 30004

Change-Id: I9ffe4bf630341f21c1fb319450096a4515789ea1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdd codes to handle ReadonlyUpdateInstalled pkg 20/200220/1
Junghyun Yeon [Wed, 20 Feb 2019 08:24:42 +0000 (17:24 +0900)]
Add codes to handle ReadonlyUpdateInstalled pkg

- When readonlyupdateinstalled pkg version is higher than
  FOTA-updated pkg, pkg version should be preserved.

Change-Id: I48e5718dca83db7e2777f51c6750f4d44478a37a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdd package dependency attribute to upgrade script 58/199058/7
Sangyoon Jang [Wed, 16 Jan 2019 09:39:40 +0000 (18:39 +0900)]
Add package dependency attribute to upgrade script

Change-Id: Ic85f83896f6de645b572f884407f77e3099ecc04
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoAdd missing upgrade script for version 30003 05/199505/2
Sangyoon Jang [Tue, 12 Feb 2019 07:49:41 +0000 (16:49 +0900)]
Add missing upgrade script for version 30003

Add app_control_id column for package_app_app_control table.

Change-Id: I3eefa5b4520d31976a94ecedec8d99744c3fdb09
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 0.4.17 92/199892/1 accepted/tizen/unified/20190218.163224 submit/tizen/20190215.085133 submit/tizen/20190218.024446
ilho [Fri, 15 Feb 2019 08:38:48 +0000 (17:38 +0900)]
Release version 0.4.17

Changes:
 - Fix upgrade_to_30002.sh script
 - Fix to avoiding sql injection
 - Fix upgrade script
 - Refactor __process_request function of pkg_cmd.c
 - Refactor pkg_upgrade
 - Fix upgrade script

Change-Id: I22012512765f255510a6adf19ed2a9bb762fef3f
Signed-off-by: ilho <ilho159.kim@samsung.com>
5 years agoFix upgrade_to_30002.sh script 59/199059/1
Sangyoon Jang [Fri, 1 Feb 2019 07:24:37 +0000 (16:24 +0900)]
Fix upgrade_to_30002.sh script

Add setting db version as 30002.

Change-Id: Ibb7b8f05a65d18bc8613d6d7e4c29412432603fb
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix to avoiding sql injection 74/197974/3
Sangyoon Jang [Thu, 17 Jan 2019 10:30:48 +0000 (19:30 +0900)]
Fix to avoiding sql injection

Change-Id: I8810ab87632294431fa7c162b380700682ec8838
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix upgrade script 70/197670/1
Sangyoon Jang [Tue, 15 Jan 2019 06:32:33 +0000 (15:32 +0900)]
Fix upgrade script

Execute pkgmgr db migration script directly, because exec system call
overwrites process.

Change-Id: Id1aa8a490c1936dc1115b2cc987f53b255eed77f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRefactor __process_request function of pkg_cmd.c 38/188638/22
ilho [Fri, 7 Sep 2018 02:49:48 +0000 (11:49 +0900)]
Refactor __process_request function of pkg_cmd.c

change that function's long switch-case statement using function pointer

Change-Id: I2bbc26dab024b8827cb706dae14c73f8414a1252
Signed-off-by: ilho <ilho159.kim@samsung.com>
6 years agoRefactor pkg_upgrade 70/190770/7
Junghyun Yeon [Fri, 5 Oct 2018 07:48:08 +0000 (16:48 +0900)]
Refactor pkg_upgrade

- Remove unused defines.
- Add codes to migrate preloaded pkg to preload-rw pkg.
- Invoking pkg_upgrade without parameter will migrate ro/rw pkgs.
- Remove some useless variable initialization.

Change-Id: I34e0afd77926b73a1a70667e43f2f69faa950c55
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix upgrade script 17/191817/4
Junghyun Yeon [Wed, 24 Oct 2018 06:54:39 +0000 (15:54 +0900)]
Fix upgrade script

- uid of user "tizenglobalapp" has changed in 4.0.

Change-Id: Ibedac9655875c725ec39013e7f71fd19ca0ce2aa
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.16 64/188964/1 accepted/tizen/5.0/unified/20181102.013403 accepted/tizen/unified/20180913.063900 submit/tizen/20180912.054239 submit/tizen_5.0/20181101.000002
Junghyun Yeon [Wed, 12 Sep 2018 05:18:01 +0000 (14:18 +0900)]
Release version 0.4.16

Changes:
 - Fix pkg_upgrade

Change-Id: Ia8023761f4e52348bbe960de2349b54078db11b3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix pkg_upgrade 38/188738/1
Junghyun Yeon [Mon, 10 Sep 2018 02:59:25 +0000 (11:59 +0900)]
Fix pkg_upgrade

- Add codes to support rpm pkg type.

Change-Id: Idca0d935c63e8a5591fb464f982eebab008409e5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.15 53/179653/1 accepted/tizen/unified/20180521.094844 submit/tizen/20180521.022058
Junghyun Yeon [Mon, 21 May 2018 02:16:51 +0000 (11:16 +0900)]
Release version 0.4.15

Changes:
 - Fix static analysis issue

Change-Id: Ice29241c7d4ab83f78be30dcc799a307edc1be27
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix static analysis issue 40/179640/1
Junghyun Yeon [Mon, 21 May 2018 00:46:24 +0000 (09:46 +0900)]
Fix static analysis issue

Change-Id: Iae6f32b9a60aecd01802f32c830aa9d1ddc0393b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.14 26/179026/1 accepted/tizen/unified/20180516.065609 accepted/tizen/unified/20180521.003615 submit/tizen/20180515.094318 submit/tizen/20180518.004605
Sangyoon Jang [Tue, 15 May 2018 09:05:50 +0000 (18:05 +0900)]
Release version 0.4.14

Changes:
 - Fix pkg_upgrade tool to handle wgt packages
 - Add upgrade script for version 30002

Change-Id: Ifca72f6056f518bd95869bddc24f494cfd3c2eea
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd upgrade script for version 30002 40/177840/6
Sangyoon Jang [Fri, 4 May 2018 04:28:05 +0000 (13:28 +0900)]
Add upgrade script for version 30002

Change-Id: I9520d7568fc61a841329cf62282cde107d92701d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix pkg_upgrade tool to handle wgt packages 38/177838/4
Sangyoon Jang [Fri, 4 May 2018 04:17:12 +0000 (13:17 +0900)]
Fix pkg_upgrade tool to handle wgt packages

Change-Id: I7490454a0d08303f141cadc2ae3ca573fffe55fa
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.4.13 63/178663/1 accepted/tizen/unified/20180514.094105 submit/tizen/20180511.064939
Junghyun Yeon [Fri, 11 May 2018 06:44:49 +0000 (15:44 +0900)]
Release version 0.4.13

Changes:
 - Change execute label of pkgcmd to "System"

Change-Id: I7f2b6f58b9a83360c91eced73dd06263b1286312
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoChange execute label of pkgcmd to "System" 74/177074/1
Junghyun Yeon [Wed, 25 Apr 2018 06:37:42 +0000 (15:37 +0900)]
Change execute label of pkgcmd to "System"

- Shell's privilege will be reduced to prevent sending
  dbus signal directly so pkgcmd's execute label should be set
  to work properly.

Change-Id: I5185b8fe45f0c820c5c26a12925b4e47501d7b43
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.12 38/175738/1 accepted/tizen/unified/20180412.140831 submit/tizen/20180412.054319
Junghyun Yeon [Thu, 12 Apr 2018 05:41:33 +0000 (14:41 +0900)]
Release version 0.4.12

Changes:
 - Remove unused dependency in the spec file

Change-Id: I3b5a5c03be2b21a0e00b264258e127db4ff4bddf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRemove unused dependency in the spec file 80/174480/1
Semun Lee [Mon, 2 Apr 2018 09:49:11 +0000 (18:49 +0900)]
Remove unused dependency in the spec file

Change-Id: I65abc4d1992ca2a4aac9ef89e264b122555b5537
Signed-off-by: Semun Lee <semun.lee@samsung.com>
6 years agoRelease version 0.4.11 73/173973/1 accepted/tizen/unified/20180330.060609 submit/tizen/20180327.085346
Junghyun Yeon [Tue, 27 Mar 2018 08:49:52 +0000 (17:49 +0900)]
Release version 0.4.11

Changes:
 - Fix pkg_upgrade tool

Change-Id: Ia04fd60bf5c69857fd493d8781fc4bf61fddb92b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix pkg_upgrade tool 33/170333/5
Junghyun Yeon [Mon, 19 Feb 2018 07:47:26 +0000 (16:47 +0900)]
Fix pkg_upgrade tool

- Change filter to get preload pkg to retrieve readonlyupdate pkgs.
- When pkg is readonlyupdated but not included at image,
  set its db attribute properly to treat as normal pkg.(TODO)
- When pkg is readnolyupdated and update image has same version,
  readonlyupdate should be uninstalled except its rwdata.

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/#/c/170323/

Change-Id: I9ae7f5567034a5c44c0eb8cd62a0b138e6626d27
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.10 48/169748/1 accepted/tizen/unified/20180219.142416 submit/tizen/20180209.043342
Sangyoon Jang [Fri, 9 Feb 2018 01:58:45 +0000 (10:58 +0900)]
Release version 0.4.10

Changes:
 - Fix double free

Change-Id: Id6b2b4c3444362772f2aa1dff2a4b9cba425d92c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix double free 33/169233/1
Sangyoon Jang [Mon, 5 Feb 2018 06:04:11 +0000 (15:04 +0900)]
Fix double free

Change-Id: I9f745a5211e066ec2cd6cc70d81bd2efcf87bb35
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.4.9 53/169053/1 accepted/tizen/unified/20180205.060509 submit/tizen/20180202.063742
Junghyun Yeon [Fri, 2 Feb 2018 05:03:05 +0000 (14:03 +0900)]
Release version 0.4.9

Changes:
 - Perform pkg_upgrade after migrating pkg databases
 - add get support-mode info on pkginfo

Change-Id: Iad3bfbcbf50c3758a5e2991529da550ab9482e2c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoadd get support-mode info on pkginfo 12/165012/4
junsuk77.oh [Tue, 24 Oct 2017 02:01:10 +0000 (11:01 +0900)]
add get support-mode info on pkginfo

Change-Id: Ia397280a23110fbff30ac039f03eeb0d97baf1e1
(cherry picked from commit 31a67a8d1b528b9eaa7e21185c9625951ce68ad2)

6 years agoPerform pkg_upgrade after migrating pkg databases 54/166154/2
Junghyun Yeon [Mon, 8 Jan 2018 08:35:11 +0000 (17:35 +0900)]
Perform pkg_upgrade after migrating pkg databases

Change-Id: I75e1415d73a0c23b8bf51cb3299056ff1ea8d746
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.8 85/167685/1 accepted/tizen/unified/20180123.061156 submit/tizen/20180119.081808
Junghyun Yeon [Fri, 19 Jan 2018 07:49:32 +0000 (16:49 +0900)]
Release version 0.4.8

Changes:
 - Fix memory leak

Change-Id: I6eb83aecab77c1f899321c8b8b93a5c31c6f617f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoFix memory leak 80/167080/2
Seungha Son [Mon, 15 Jan 2018 08:40:35 +0000 (17:40 +0900)]
Fix memory leak

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I8b6ddb7c8576917662d1788e0f08794c5bc65ef1

6 years agoRelease version 0.4.7 89/165789/1 accepted/tizen/unified/20180108.062531 submit/tizen/20180104.043433
Sangyoon Jang [Thu, 4 Jan 2018 04:14:21 +0000 (13:14 +0900)]
Release version 0.4.7

Changes:
 - Add sciprts for missed column
 - Fix memory leak

Change-Id: I729ab8bcb2831bf19d58f8ea64b3df021a3e4d67
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix memory leak 75/165775/1
Sangyoon Jang [Thu, 4 Jan 2018 01:48:57 +0000 (10:48 +0900)]
Fix memory leak

Change-Id: I9dfbd4d88188c352e5d9cf0e14caa0e58938c21c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd sciprts for missed column 23/165223/1
Junghyun Yeon [Wed, 27 Dec 2017 06:40:45 +0000 (15:40 +0900)]
Add sciprts for missed column

- Add scripts to modify package_app_info to add additional column.

Change-Id: I94911698fc91b074e82c759a8a20ed7bd1a8deab
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRelease version 0.4.6 88/164988/1 accepted/tizen/unified/20171228.065025 submit/tizen/20171222.073841
Junghyun Yeon [Fri, 22 Dec 2017 07:36:39 +0000 (16:36 +0900)]
Release version 0.4.6

Changes:
 - Refactor pkg_getsize for reduce dbus call count

Change-Id: Ib1af0f4f1a1de745e9b30dadc1cd5830a1ff45dd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRefactor pkg_getsize for reduce dbus call count 97/162897/4
Seungha Son [Wed, 6 Dec 2017 04:57:53 +0000 (13:57 +0900)]
Refactor pkg_getsize for reduce dbus call count

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Iad633c39ed7e8532f55358f8c95d3b885d19a563

6 years agoRelease version 0.4.5 81/161781/1 accepted/tizen/4.0/unified/20171128.072852 accepted/tizen/unified/20171128.150348 submit/tizen/20171127.102301 submit/tizen_4.0/20171127.103425
Junghyun Yeon [Mon, 27 Nov 2017 10:15:47 +0000 (19:15 +0900)]
Release version 0.4.5

Changes:
 - Change pkginfo getter function
 - Remove unnecessary directory in spec

Change-Id: I8e43a0201d51bd0c1e723f98dc2ba84db2d644fe
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoRemove unnecessary directory in spec 40/160440/1
Junghyun Yeon [Thu, 16 Nov 2017 06:42:25 +0000 (15:42 +0900)]
Remove unnecessary directory in spec

Change-Id: I127a115250a33ff2f9e02c546cb4616199f6609e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoChange pkginfo getter function 46/159446/2
Junghyun Yeon [Thu, 9 Nov 2017 02:50:01 +0000 (11:50 +0900)]
Change pkginfo getter function

- pkgmgrinfo_pkginfo_get_usr_list retrieves whole information
  even it doesn't used by getsize.
- get_usr_list_full will retrieve minimum information
  but it's enough for pkg_getsize's purpose.

Change-Id: I92e04f83e872824f717202f4bc035d038716f311
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.4.4 50/159450/1 accepted/tizen/unified/20171109.124917 submit/tizen/20171109.041728
Seungha Son [Thu, 9 Nov 2017 04:10:20 +0000 (13:10 +0900)]
Release version 0.4.4

Changes:
 - Remove unnecessary dependency

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I34e5a38623038e68da8161d76f2491ad8a09d180

7 years agoRemove unnecessary dependency 12/157912/3
Junghyun Yeon [Fri, 27 Oct 2017 01:30:44 +0000 (10:30 +0900)]
Remove unnecessary dependency

- Remove db-util dependency and replace it into sqlite3
- Remove inclusion of unnecessary header.

Change-Id: I87f09354d62b40fa544e62e99305897b04c51377
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.4.3 31/156631/1 accepted/tizen/4.0/unified/20171019.235305 accepted/tizen/unified/20171020.091602 submit/tizen/20171019.074229 submit/tizen_4.0/20171019.074058 tizen_4.0.m2_release
Junghyun Yeon [Thu, 19 Oct 2017 07:33:45 +0000 (16:33 +0900)]
Release version 0.4.3

Changes:
 - Fix typo error

Change-Id: I1715899ed74f46dc7a31602f6f1c69a200761539
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix typo error 20/156620/1
Junghyun Yeon [Thu, 19 Oct 2017 07:19:41 +0000 (16:19 +0900)]
Fix typo error

Change-Id: I96f103d32c4b87122bdfc1676690a16cd5eaec85
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.4.2 07/156107/1 accepted/tizen/4.0/unified/20171018.060940 accepted/tizen/unified/20171018.062527 submit/tizen/20171017.074628 submit/tizen_4.0/20171017.080654
Junghyun Yeon [Tue, 17 Oct 2017 06:55:44 +0000 (15:55 +0900)]
Release version 0.4.2

Changes:
 - Add update start script

Change-Id: I7abc6d0a43f6b8a1475bd8a6e32e5946bf877cfd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd update start script 23/155223/1
Junghyun Yeon [Thu, 12 Oct 2017 10:02:53 +0000 (19:02 +0900)]
Add update start script

- Pkgmgr db upgrade will be happened even if there are no platform update
  so seperate update initialization script from platform update script.

Change-Id: Ie847af1969c7ab65c766228b5a0c9729ad9f4ad2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.4.1 52/154952/1 accepted/tizen/unified/20171012.075137 submit/tizen/20171011.123741 submit/tizen_4.0/20171013.025647
Sangyoon Jang [Wed, 11 Oct 2017 12:32:23 +0000 (21:32 +0900)]
Release version 0.4.1

Changes:
 - Fix some static analyzer issues
 - Fix upgrade script

Change-Id: I75f7cc30e78c47eaadb68d676e6a35cd88953942
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix upgrade script 03/152603/6
Junghyun Yeon [Tue, 26 Sep 2017 11:53:30 +0000 (20:53 +0900)]
Fix upgrade script

- Invoke pkg_upgrade tool for updated RO packages
- Change schema of datacontrol table.
- Adjust order of inserting order of datacontrol table.

Change-Id: I218f79acbf89caab9f411b3b6173c6871a1b177c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix some static analyzer issues 34/154434/1
Semun Lee [Tue, 10 Oct 2017 07:53:05 +0000 (16:53 +0900)]
Fix some static analyzer issues

- fix resource leak
- check return value properly

Change-Id: I9c3ab936cb6c84dbb664a6c41c74f48f5dab5067
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoRelease version 0.4.0 35/152435/1 accepted/tizen/4.0/unified/20170927.181738 accepted/tizen/unified/20170927.063509 submit/tizen/20170926.073829 submit/tizen_4.0/20170926.120510 tizen_4.0.IoT.p1_release
Junghyun Yeon [Tue, 26 Sep 2017 06:51:26 +0000 (15:51 +0900)]
Release version 0.4.0

Changes:
 - Fix realpath issue
 - Support debug mode for reinstall, mount install
 - Fix upgrade script

Change-Id: I11df87815627653f2e40fe20e62c7bb2e6fcc31f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix upgrade script 47/151747/5
Junghyun Yeon [Fri, 22 Sep 2017 01:13:34 +0000 (10:13 +0900)]
Fix upgrade script

- Fix wrong scripts to get latest db version properly.
- Remove usage of undefined variable.
- Add codes to migrate user db
- Add codes to migrate cert db

Change-Id: Iec8f5b670959dc984f623ed14e1662fed7c61ccd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSupport debug mode for reinstall, mount install 01/151301/2
Semun Lee [Wed, 20 Sep 2017 10:30:41 +0000 (19:30 +0900)]
Support debug mode for reinstall, mount install

Change-Id: I5a54a6dec944415579c172e5d63bdcf57a27c662
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoFix realpath issue 10/151310/1
Semun Lee [Wed, 20 Sep 2017 10:53:03 +0000 (19:53 +0900)]
Fix realpath issue

realpath may cause buffer overflow by design.
This patch fixes to pass NULL for resolved path to make realpath safe.

Change-Id: I881726619ec14d8cbc4f7c47cf7e8d57d5a13af2
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoRelease version 0.3.13 49/150249/1 accepted/tizen/4.0/unified/20170920.081432 submit/tizen/20170915.023525 submit/tizen_4.0/20170915.023947
Semun Lee [Fri, 15 Sep 2017 02:22:55 +0000 (11:22 +0900)]
Release version 0.3.13

Changes:
 - Fix bugs on upgrade script
 - fix coding rule error

Change-Id: I245d3d1763059ae540b69801d73e9c070ea7c5f9
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agofix coding rule error 68/149668/2
Youngjae Shin [Wed, 13 Sep 2017 01:44:19 +0000 (10:44 +0900)]
fix coding rule error

Change-Id: I86e3b7ba445367e0af3fa1bad8dfeedae92a6e36

7 years agoFix bugs on upgrade script 75/147275/2
Junghyun Yeon [Sun, 3 Sep 2017 23:39:01 +0000 (08:39 +0900)]
Fix bugs on upgrade script

- Signature file has removed by previous platform for security purpose
  so there are no way to determine privilege level while upgrading.
- So, now upgrade script will make file which stores root cert value
  each package and installer will retrieve it at runtime when there are
  no signature file to read.
- After migration, cert db will be migrated directly into pkg cert db.
- Remove chsmack in script.
- Now tpk related functions will handle rpm packages, too.

Change-Id: I2ec688c94876c903e82274a2eefd63290514578b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.3.12 82/148582/1 accepted/tizen/unified/20170911.155853 submit/tizen/20170908.075925
Junghyun Yeon [Fri, 8 Sep 2017 06:55:36 +0000 (15:55 +0900)]
Release version 0.3.12

Changes:
 - Fix pkgmgr migration script
 - Fix wrong option name

Change-Id: Icc0020463552431792cb911b731c951f8edc7698
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>