Junghyun Yeon [Tue, 7 Sep 2021 08:01:52 +0000 (17:01 +0900)]
Release version 0.8.2
Changes:
- Change res-copy behavior when handling uninstall request
Change-Id: I4648d5e3092b32d7255ed87012a11bc5072371f9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 7 Sep 2021 07:54:04 +0000 (16:54 +0900)]
Change res-copy behavior when handling uninstall request
Change it to proceed uninstall requests even if there are no
package information on database.
Change-Id: I494b7879d6dd66079c81cd6c387f4b952d86dbf4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 6 Sep 2021 01:25:29 +0000 (10:25 +0900)]
Release version 0.8.1
Changes:
- Fix coding rule
- Change permission of directories being created or copied
- Send event signal for user
- Fix static analysis issue
- Improve code readability.
- Fix send resource signal api
Change-Id: Id759b2169679d459a901675b01b1af2a3a771d39
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 1 Sep 2021 05:51:45 +0000 (14:51 +0900)]
Fix send resource signal api
Related:
[slp-pkgmgr]https://review.tizen.org/gerrit/#/c/platform/core/appfw/slp-pkgmgr/+/263354/
Change-Id: Id05fd4759ac9cdb1dfe5eee81ce47b6a66c8a45b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Thu, 5 Aug 2021 02:56:06 +0000 (11:56 +0900)]
Improve code readability.
- Add some empty lines for readability.
- Reduce indentation depth.
- Extract codes into function.
Change-Id: I7e3b3199632f71632b9e7311aaf35ea7ed4037a2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 1 Sep 2021 05:48:33 +0000 (14:48 +0900)]
Fix static analysis issue
Change-Id: I1def0214172a8e0b6d7a49c7a2c8d7bbf7b5ed61
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Tue, 31 Aug 2021 05:33:22 +0000 (14:33 +0900)]
Send event signal for user
Change-Id: I69c2ca4ce2897c84f77a10f0094d867b611e6ff7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 31 Aug 2021 02:23:56 +0000 (11:23 +0900)]
Change permission of directories being created or copied
Change-Id: I2b72706dfd2f95f779d2446e5cc83ef0ac35a480
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 26 Aug 2021 02:40:20 +0000 (11:40 +0900)]
Fix coding rule
Change-Id: I87a5643b67f94381ae8466e009587c579685037a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 26 Aug 2021 06:30:12 +0000 (15:30 +0900)]
Release version 0.8.0
Changes:
- Set smack label of pkg_upgrade
- Implement request handlers
- Fix static analysis issue
- Change prefix rsc to res
- Add DB backup unit test for pkg_upgrade
- Merge "Set smack label of pkg_upgrade" into tizen
- Implement CreateDir request handler
- Add checking routine to prevent path traverse attack
- Implement EventSignalSender
- Implement EventSignalSender unit test
- Change directory policy
Change-Id: I9cc80a51d2ecf8307f3a4908f7a040f381933b18
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 25 Aug 2021 02:33:31 +0000 (11:33 +0900)]
Change directory policy
- Create root directory when installing RPM package.
- Change codes to set uid/gid with designated user and group.
- Cleanup unit test for reduce duplicated codes.
Change-Id: Id7621cced36340e045a7864b1b5e9e3756d3d36e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Tue, 24 Aug 2021 06:20:53 +0000 (15:20 +0900)]
Implement EventSignalSender unit test
Change-Id: I473f648fd6182ac3d7ab191a5cad55c89c7767bd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 23 Aug 2021 01:29:02 +0000 (10:29 +0900)]
Implement EventSignalSender
Change-Id: Ie9caa2fa8d39272132a100cbcd0930da49d5c4f5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 24 Aug 2021 01:41:02 +0000 (10:41 +0900)]
Add checking routine to prevent path traverse attack
Change-Id: Ie90df0c9d1075725870cdce7c86f7c1a6c5b703a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 20 Aug 2021 03:33:08 +0000 (12:33 +0900)]
Implement CreateDir request handler
Implement CreateDir request handler which responsible for creating new directories.
Change-Id: Ib5dba75b3f2d8975917eeb248fcd7cdf15afad95
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 23 Aug 2021 04:55:47 +0000 (04:55 +0000)]
Merge "Set smack label of pkg_upgrade" into tizen
Ilho Kim [Thu, 29 Jul 2021 02:29:55 +0000 (11:29 +0900)]
Add DB backup unit test for pkg_upgrade
Change-Id: I3f0e55c4736b1ee4f24c8409ed14660985ec86c5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 18 Aug 2021 10:21:51 +0000 (19:21 +0900)]
Change prefix rsc to res
"res" is more common word for representing "resource" than "rsc".
Change-Id: I32c71d86a056a1c5127282e9fe0d69db8bc6e627
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 20 Aug 2021 02:51:40 +0000 (11:51 +0900)]
Fix static analysis issue
Change-Id: Ieeeb6130390c6a54d80d1f95fb5a839eae6c8c8e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 11 Aug 2021 05:57:36 +0000 (14:57 +0900)]
Implement request handlers
Implement request handlers and its unit tests.
Change-Id: I131b551905d32d0b9794eb072f654c0b43a3476c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 19 Aug 2021 08:07:21 +0000 (17:07 +0900)]
Set smack label of pkg_upgrade
Change-Id: I7ffb643648b37b24ceb709f0a69cf10966e80418
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Wed, 11 Aug 2021 09:31:46 +0000 (18:31 +0900)]
Release version 0.7.8
Changes:
- Add BackendInvoker unittest
- Minor refactor pkg_upgrade tool
- Change unittest directory hierachy
- Move unit test main code
- Fix pkg_upgrader
- Add skeleton codes for rsc-copy tool
- Add missing include
- Implement ParamChecker class
- Add GetRequestHandlerType() on AbstractRequesthandler
- Change prototype of some functions
- Implement RequestHandlerInvoker, ConditionValidator
- Implement RscHandler
- Merge "Fix pkg_upgrader" into tizen
- Parse session-id for emitting signal in rsc-copy
Change-Id: I5ee0d42d42ec80fcf0a3dd534e9fa53e2d5c6dca
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 11 Aug 2021 01:49:30 +0000 (10:49 +0900)]
Parse session-id for emitting signal in rsc-copy
Change-Id: I86c6ee8e3f7050f1aaf12d48f88111be8c2315c0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghoon Park [Wed, 11 Aug 2021 05:29:56 +0000 (05:29 +0000)]
Merge "Fix pkg_upgrader" into tizen
Junghyun Yeon [Wed, 11 Aug 2021 02:05:48 +0000 (11:05 +0900)]
Implement RscHandler
Change-Id: I90707c66551d8c52745f7ea4e2b66d074606d2b9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 10 Aug 2021 07:45:12 +0000 (16:45 +0900)]
Implement RequestHandlerInvoker, ConditionValidator
Change-Id: I2d70a0c78dd2c9a6ebf0cbcbf4246c6dfe12de95
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 10 Aug 2021 06:44:58 +0000 (15:44 +0900)]
Change prototype of some functions
- Add GetUID() function to ParamChecker to get parsed UID properly.
- Change SendFail() to accept error type as parameter.
- Remove parameter of EventSignalSender constructer. and add setter functions.
Change-Id: Iedde81894c25afde769ff89a55a4725706fa6bbf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 10 Aug 2021 05:42:54 +0000 (14:42 +0900)]
Add GetRequestHandlerType() on AbstractRequesthandler
Add function to check type of RequestHandler.
Change-Id: I6b041a90abf5e766fc07846d479b277c657d654f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 2 Aug 2021 03:50:33 +0000 (12:50 +0900)]
Implement ParamChecker class
Implement ParamChecker class and its unittest.
Change-Id: I14b26a4d3e99e8184d4059c9c14583734194b9d0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Fri, 6 Aug 2021 07:29:54 +0000 (16:29 +0900)]
Add missing include
std::find() needs <algorithm>.
Change-Id: I5f734889073ee7d7a039748968afb01fcf6b3eaf
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Thu, 29 Jul 2021 02:31:43 +0000 (11:31 +0900)]
Add skeleton codes for rsc-copy tool
Change-Id: I3cdeb756b7acfc38b205cadb343312ac1e6ca553
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jh9216.park [Mon, 2 Aug 2021 08:07:20 +0000 (04:07 -0400)]
Fix pkg_upgrader
- In case of Uninstall operation, the tool shouldn't unzip files
- Fixed PkgUpgrader::CompareVersion()
- Added unittests
Change-Id: I31d591527b37a4d97d5d80c5e9f1c9867409d11d
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Junghyun Yeon [Wed, 4 Aug 2021 05:08:15 +0000 (14:08 +0900)]
Move unit test main code
Extract main code for upper directory hierachy to used by other unit tests.
Change-Id: I313b299931183ecc62446d14cd0becd0e3e82348
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 2 Aug 2021 06:29:56 +0000 (15:29 +0900)]
Change unittest directory hierachy
Add pkg_upgrade directory at unit_unitests directory to
add unit tests for another tools.
Change-Id: I0c6f4d98d30b9ce53721e684703e98fabb3ce482
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 1 Jul 2021 07:24:29 +0000 (16:24 +0900)]
Minor refactor pkg_upgrade tool
- Refactor CompareVersion() to return verson compare result directly.
- Change enum type name to use more common abbreviation of "compare".
- Fix using UnzipPkgFromZip() to deliver std::string.
- Remove unnecessary variable initialization.
- Change return type of UnzipPkgFromZip to boolean.
- Replace some command and its arguments into constexpr.
- Extract BackendInvoker constructor with several functions for readability.
- Adjust ordering of include files with alphabetical order.
Change-Id: I4c6f7a8617da1e3fbbf6eca53fe308a8f0b61d8d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 1 Jul 2021 09:43:54 +0000 (18:43 +0900)]
Add BackendInvoker unittest
This unittest checks BackendInvoker whether
generates correct backend parameter or not.
Change-Id: Ie205167961bc622f00dc9da9cb56c94490741931
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 17 Jun 2021 06:50:58 +0000 (15:50 +0900)]
Release version 0.7.7
Changes:
- Remove unused script
- Add upgrade script for pkg db version 30006
- Implement res_type filter
Change-Id: I9b9156976c9100a75a5576cc5565ab356218c276
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 23 Apr 2021 10:27:11 +0000 (19:27 +0900)]
Implement res_type filter
Requires:
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/251170/
Change-Id: Idba4833ba6efb42ecda69b30302d68c78a71c9f8
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 29 Dec 2020 03:45:36 +0000 (12:45 +0900)]
Add upgrade script for pkg db version 30006
Change-Id: I1e10a44388d8886f4ca32cf2fb4afe11eb46e11c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 3 Jun 2021 03:30:22 +0000 (12:30 +0900)]
Remove unused script
Change-Id: Ia6c723ac588a5ee94198cb467a25290cad7cc811
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Mon, 14 Jun 2021 07:12:04 +0000 (16:12 +0900)]
Release version 0.7.6
Changes:
- Change backup db logic
Change-Id: I424c637f39ac82f752c6bba9c58bb3da7e2baac7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 1 Jun 2021 04:43:13 +0000 (13:43 +0900)]
Change backup db logic
- Change to using sqlite3_backup api for making backup db
- Try integrity check before restore backup db
and if integrity check fail, the backup is cleared and continue to upgrade
- Delete backup db when upgrade operation has failed
Change-Id: I0aacdbb7e756eb6ed2f48e683bea127057a09d13
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Thu, 10 Jun 2021 06:13:11 +0000 (15:13 +0900)]
Release version 0.7.5
Changes:
- Fix memory leak
- Improve code readability
- Fix static analysis issues
Change-Id: I217a67ef170e4d33a296681567c56601cf960979
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 9 Jun 2021 10:18:59 +0000 (19:18 +0900)]
Fix static analysis issues
Fix uninitialized variable and memory leak.
Change-Id: I6daaf54946c8919e4ae1f81b52973340f46b5690
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Fri, 14 May 2021 05:18:27 +0000 (14:18 +0900)]
Improve code readability
- Extract constant string as constexpr variablres.
- Fix minor coding rule.
Change-Id: Ifd0a61d1f9ea0d27dae7a7d98b1e6c15ee7e1a7b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 28 May 2021 06:32:03 +0000 (06:32 +0000)]
Merge "Fix memory leak" into tizen
Junghyun Yeon [Fri, 14 May 2021 06:26:33 +0000 (15:26 +0900)]
Fix memory leak
Filter handle should be freed before exit function unexpectdly.
Change-Id: If5a5b07cbbe4bfd93b9a3eb924dc8e89b8658a5d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Tue, 18 May 2021 04:17:13 +0000 (13:17 +0900)]
Release version 0.7.4
Changes:
- Add version constraint for pkg upgrade in platform update
- Refactor upgraders
- Use std::make_unique instead of new
- Fix some error logs
- Refine some codes of RwUpgrader
Change-Id: Ia3010b849e94bdb79d417ca18008add17173ea99
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 14 May 2021 10:04:34 +0000 (19:04 +0900)]
Refine some codes of RwUpgrader
Change-Id: Id142e9580736049a9eec3dcf6a6093e4ec54a79b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 14 May 2021 09:59:56 +0000 (18:59 +0900)]
Fix some error logs
Make some more naturally.
Change-Id: Id7772a9ed0f3479c5e5c6cc139131f4d08d992a9
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 14 May 2021 07:44:27 +0000 (16:44 +0900)]
Use std::make_unique instead of new
Change-Id: I3e12a3a6ae43640e826106de9261b00b18d6f7b8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 14 May 2021 07:02:32 +0000 (16:02 +0900)]
Refactor upgraders
Now Ro2Rw / Rw2Ro become a combination of RoUpgrader / RwUpgrader.
Change-Id: I7e358ef7f30ca4ae2a280ac3c50b15da98b1828e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Fri, 14 May 2021 02:40:50 +0000 (11:40 +0900)]
Add version constraint for pkg upgrade in platform update
Installer will not be invoked for packages
which are version of old and new are same.
Change-Id: I98ba2fda168b9586c35bf3a9075c5d502b76b3dc
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Fri, 19 Mar 2021 07:31:49 +0000 (16:31 +0900)]
Release version 0.7.3
Changes:
- Add codes to check backend execution result
- Add cryptsetup runtime dependency
- Clear memory database after saving certinfo
Change-Id: I80a5ca3cb802decc45afd8e1924513bd13a43be6
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 19 Mar 2021 05:27:48 +0000 (14:27 +0900)]
Clear memory database after saving certinfo
Change-Id: I0b0dccf60b6b721630debf6c7e9a70c595908c7e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
INSUN PYO [Fri, 5 Mar 2021 02:26:56 +0000 (11:26 +0900)]
Add cryptsetup runtime dependency
This package uses /sbin/cryptsetup.
Change-Id: I65eeb7be2fe70f19cc6dbe964ce02dbafa996356
Junghyun Yeon [Tue, 26 Jan 2021 09:30:09 +0000 (18:30 +0900)]
Add codes to check backend execution result
Tool may add flags depends on backend execution result
Change-Id: I019d657d8d18e04d205702f3fd3bf0696f6f2357
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Tue, 22 Dec 2020 03:14:25 +0000 (12:14 +0900)]
Release version 0.7.2
Changes:
- Fix minor coding rule
- Fix static analysis issues
Change-Id: I0c20583a2a439fc43f10f7954fd83e87b6b7e958
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 1 Dec 2020 01:49:39 +0000 (10:49 +0900)]
Fix static analysis issues
Change-Id: I4865c112274c9aec03770aebe59cff8ec2b180c0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 30 Nov 2020 02:39:54 +0000 (11:39 +0900)]
Fix minor coding rule
Change-Id: Ibbab34ace09323983b9d411b20746030b3b5c797
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 1 Dec 2020 00:18:43 +0000 (09:18 +0900)]
Release version 0.7.1
Changes:
- Fix minor coding rules
- Add compiler, linker flags for c++ tools
Change-Id: Idd89b044f47dfd49e52687e1165eabfa1891cee5
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 27 Nov 2020 06:14:32 +0000 (15:14 +0900)]
Add compiler, linker flags for c++ tools
Change-Id: Iee455a1b331c18b856dedea45e60a8954ee11a9e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 23 Nov 2020 09:59:52 +0000 (18:59 +0900)]
Fix minor coding rules
Change-Id: Icd145f54daa5c8790369ec66845cf4270b100a0c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 23 Nov 2020 07:42:42 +0000 (16:42 +0900)]
Release version 0.7.0
Changes:
- Refactor pkg_upgrade tool
Change-Id: I537bff49e7fe418e27b56aee98c9325e89d1eaaf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghoon Park [Fri, 6 Nov 2020 01:50:35 +0000 (10:50 +0900)]
Refactor pkg_upgrade tool
- Redesigned
- Changed language (c to c++)
Change-Id: I726102f2d84ddda80046d07a40e01ba7c55dff70
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghyun Yeon [Fri, 6 Nov 2020 01:51:10 +0000 (10:51 +0900)]
Release version 0.6.7
Changes:
- Fix backup file process
Change-Id: Icd2daa16015c3c6ba9d18d3e94c45532d984e59d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Wed, 4 Nov 2020 06:29:02 +0000 (15:29 +0900)]
Fix backup file process
Make a flag before backup file.
Change-Id: I040c371b9d5af2e93a7cea94decab7c96a9e7138
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Hwankyu Jhun [Mon, 5 Oct 2020 23:55:34 +0000 (08:55 +0900)]
Release version 0.6.6
Changes:
- Fix shared data migration script
- Remove incorrectly created shared data directory
- Remove directory using rm -r
- Add parameters for further usage
- Backup databases before running pkg_upgrade
- Remove unused variable
- Minor refactor in pkgmgr_upgrade.c
- Fix pkginfo tool
Change-Id: I3c119df76cf4b14738b805d1327a3542c4224bcc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 5 Oct 2020 23:35:21 +0000 (08:35 +0900)]
Fix pkginfo tool
- Prints component-based application info
Change-Id: Ie71b5f278aa0a4b3095c1d89345bb1d823a0c514
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Ilho Kim [Tue, 29 Sep 2020 01:42:55 +0000 (10:42 +0900)]
Minor refactor in pkgmgr_upgrade.c
- Remove duplicated code
- Insert blank line for clarity
Change-Id: Ie9778d1329e418d03741948c893ce2a070f2c4fe
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 25 Sep 2020 08:03:28 +0000 (17:03 +0900)]
Remove unused variable
Change-Id: I9c3b182f66800c4b4f7cc09a29cb1bb4176ecce7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 24 Sep 2020 04:51:52 +0000 (13:51 +0900)]
Backup databases before running pkg_upgrade
If pkg_upgrade forced terminated before it finished and then rerun
pkgmgr database will contain the result of previous work
it can cause errors when upgrading
so pkg_upgrade needs to backup the pkgmgr database before running
and remove the backup files after all is done
Change-Id: Ifbcc46071609df01829089beb93f942ce9283831
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 23 Sep 2020 08:51:54 +0000 (17:51 +0900)]
Add parameters for further usage
This will allows other modules to install packages at
different timing.
Change-Id: I8989921f0e056879c38ed41a801a8ede30731442
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Wed, 16 Sep 2020 08:22:23 +0000 (17:22 +0900)]
Remove directory using rm -r
rmdir can be fail if there are files under shared/data.
Change-Id: If6a67d4a1c019ebc0c034fbaad4c33f813d95a5e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 16 Sep 2020 07:07:24 +0000 (16:07 +0900)]
Remove incorrectly created shared data directory
/opt/usr/globalapps/{pkgid}/shared/data should not be exist.
Change-Id: I72342fd32a3d5d972b51c80231351f8c27623253
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 16 Sep 2020 06:33:28 +0000 (15:33 +0900)]
Fix shared data migration script
chsmack should by done recursively.
Add missing chsmack command.
Change-Id: I359312df9e4647c11a264120b9d7899f6a9ee92e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Fri, 14 Aug 2020 07:43:20 +0000 (16:43 +0900)]
Release version 0.6.5
Changes:
- Split CMakeLists files
Change-Id: I969bb8e6165878c14b0b7a299d3fabbc7b7bc3e2
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 7 Jul 2020 07:35:44 +0000 (16:35 +0900)]
Split CMakeLists files
Each tools has own directory and files for it has moved into it.
So CMakeList file could be separated.
Change-Id: I3a2557d4cceced4aa27fcb40fc3d01c4d61603de
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 16 Jul 2020 03:51:02 +0000 (12:51 +0900)]
Release version 0.6.4
Changes:
- Add semicolon at the end of query
- Separate pkg related tools into directory hierachy
- Fix realpath buffer overflow issue
- Remove directories of preload-rw package removed by user
Change-Id: I105f15f1ca73f2d187973bca15513557510b529e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 30 Jun 2020 05:11:50 +0000 (14:11 +0900)]
Remove directories of preload-rw package removed by user
In some cases, there may be directories by upgrade module.
Change-Id: I63f867c8bdd3a7f756f83a37b52581364edad4c6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 13 Jul 2020 05:23:08 +0000 (14:23 +0900)]
Fix realpath buffer overflow issue
Change-Id: I076d1c238f4fb942d09fc32b29e6d751d4be50fa
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Wed, 4 Dec 2019 06:13:41 +0000 (15:13 +0900)]
Separate pkg related tools into directory hierachy
Change-Id: Ib62eae0ca92796c33f5a2a55953f7187bd3a3f72
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 18 Jun 2020 05:46:19 +0000 (14:46 +0900)]
Release version 0.6.3
Changes:
- Add semicolon at the end of query
Change-Id: Ib48c69e01f6dccf3b1aa4ca8e932c330c9fccd0f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 18 Jun 2020 05:32:26 +0000 (14:32 +0900)]
Add semicolon at the end of query
Change-Id: I1dd6e73c331f070c68643178ef7ee3ac703472d7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Tue, 2 Jun 2020 01:15:14 +0000 (10:15 +0900)]
Release version 0.6.2
Changes:
- Fix definition of length of pkg path
Change-Id: Ia1d307fd8c14ad9b7021418f1059a60a6ddfcf68
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Tue, 2 Jun 2020 01:09:05 +0000 (10:09 +0900)]
Fix definition of length of pkg path
Change-Id: I01afa342c3b1867268269d02767584b412803da2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Mon, 1 Jun 2020 02:27:23 +0000 (11:27 +0900)]
Release version 0.6.1
Changes:
- Remove preload-rw pkgs after install
- Fix preload-rw update
- Convert relative path to absolute path for multi pkg install
- Fix error handling when multi pkg install
- Print entire given package path list
- Fix memory leak
- Fix allocation check logic correctly
Change-Id: Ic9149d4d8b55e900edebbc2e4fd841c3028150ee
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 1 Jun 2020 01:54:55 +0000 (10:54 +0900)]
Fix allocation check logic correctly
Change-Id: I144e4ce617584e82a8558056f4863d8c9ca206d6
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 29 May 2020 10:11:21 +0000 (19:11 +0900)]
Fix memory leak
preload_rw_list's element should be freed by __free_pkginfo()
Change-Id: Ide3118860f4d2bd048964180b09dae380d63a8b9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Fri, 22 May 2020 07:22:32 +0000 (16:22 +0900)]
Print entire given package path list
Change-Id: I7bdd6b8a0aa1e0c055c3197b5e375dc93e0629c1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 22 May 2020 07:17:55 +0000 (16:17 +0900)]
Fix error handling when multi pkg install
Exit with PACKAGE_NOT_FOUND error when the input package does not exist.
Change-Id: I5b7119012efa08b7022f8f6ea60171d868b87610
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 22 May 2020 06:04:00 +0000 (15:04 +0900)]
Convert relative path to absolute path for multi pkg install
Change-Id: I42fd0540935c2538d5e982a8581e8a1ac71201d0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 27 Apr 2020 06:02:17 +0000 (15:02 +0900)]
Fix preload-rw update
Add version, type information at ".all_preload_rw_list" to update
preload-rw packages during Tizen platform upgrade.
Change-Id: Ifaa629ed4b8a591f03a22bdcfb70cd471e99fd94
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 23 Apr 2020 11:30:18 +0000 (20:30 +0900)]
Remove preload-rw pkgs after install
These packages were backuped already.
Change-Id: Ibca7ca4ab358788759c90c28e9a24eee10866e97
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Fri, 3 Apr 2020 06:34:46 +0000 (15:34 +0900)]
Release version 0.6.0
Changes:
- Fix pkgcmd to handle multiple install request
Change-Id: I38eb2cef544345145c8090296997e753cb7cde2a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Mon, 10 Feb 2020 06:00:57 +0000 (15:00 +0900)]
Fix pkgcmd to handle multiple install request
Usage:
$ pkgcmd -i -p {pkgpath1} {pkgpath2} {pkgpath3}
$ pkgcmd -u -n {pkgid1} {pkgid2} {pkgid3}
Change-Id: I0febf29e5f737e50c3c35c21c81b6a7e5281c1e3
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Fri, 14 Feb 2020 07:53:55 +0000 (16:53 +0900)]
Release version 0.5.16
Changes:
- Fix double close issue
- Fix pkginfo tool
- Remove codes related with unused APIs
Change-Id: I451e041048e2caf1fdb058669c87c75986d3e9e2
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Wed, 22 Jan 2020 12:19:08 +0000 (21:19 +0900)]
Remove codes related with unused APIs
Related changes:
[slp-pkgmgr] : https://review.tizen.org/gerrit/223061
Change-Id: Iae4b34bf06f2b073dd4c4e90d180761ccd612a6b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Hwankyu Jhun [Wed, 12 Feb 2020 23:04:01 +0000 (08:04 +0900)]
Fix pkginfo tool
This patch adds a new condition to check whether the component type is
component-based-application or not.
Change-Id: I621996fd95f40c5e45d5f1dff8c32df2330d155a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Sangyoon Jang [Mon, 10 Feb 2020 06:24:00 +0000 (15:24 +0900)]
Fix double close issue
fd passed to fdopendir is used internally by the implementation, and
should not otherwise be used by the application.
Change-Id: Ib8de3e9782f8e2455329acaecaeb43d2646c3a6d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>