Commit Graph

31 Commits

Author SHA1 Message Date
ice909 fb09ada313 feat: optimization error message
Define error codes to identify different errors.
The cli displays error information to users based on error codes.
Add -v,--verbose option to display detailed error information.

Signed-off-by: ice909 <gaochang1@uniontech.com>
2025-04-16 10:56:11 +08:00
kamiyadm 42263b7072 fix: cannot run application after upgrade cli
* Add dbus method GenerateCache, signal GenerateCacheFinished. (PM)
* Add an exclusive write lock to the application cache in
  ensureCache to ensure that the container runs after the cache
  is generated. (cli)

Log:
2024-12-12 17:26:10 +08:00
kamiyadm 6ecb60f98b refactor: check permission by method Permissions
Add new method Permissions to PM.

Log:
2024-12-10 16:22:37 +08:00
ComixHe ca4f8bc7c7 refactor: re-implement migrate
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-11-19 17:46:22 +08:00
ComixHe ec4e2ecd44 feat: implement the 'deferred uninstallation' feature
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-10-31 13:35:32 +08:00
kamiyadm ca2a4af4e5 refactor: the behavior of InstallFromFile
* Add new arg options(a{sv}) to InstallFromFile(dbus xml).
* Support interaction for installFromFile.

Log:
2024-10-31 13:35:32 +08:00
kamiyadm d48771a357 refactor: adjust the dbus xml of PackageManager
* Change the arg of ReplyInteraction, ID(s) to task(o).
* Rename requestInteraction to RequestInteraction.
* Change the property of RequestInteraction:
   Remove ID(s).
   messageID(u) -> messageID(i).
   Add new arg additonalMessage(a{sv}).

Log:
2024-10-31 13:35:32 +08:00
ComixHe fc1088eba4 refactor: the mechanism of task
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-10-31 13:35:32 +08:00
kamiyadm 3ec1512167 feat: support prune
* Implement Prune in package_manager.cpp.
* Overload the less-than operator of reference.
* Add new signal PruneFinished to package_manager.

Log:
2024-10-31 13:35:32 +08:00
kamiyadm 670e82dd76 refactor: change some api of ll-cli/ll-package-manager
* Change dbus return type to QVariantMap.
* Add new dbus method SetRunningState, Prune.
* Add new subcommand prune.
* Change the parameters in TaskChange.
* Add task for Uninstall.
* Set correct Status and SubStatus.

Log:
2024-10-31 13:35:32 +08:00
kamiyadm be27e22a7d refactor: Change the dbus properties of Task1
* Rename state/subState to State/SubState.
* Change the type of State/SubState to 'u'.
* Add new property Percentage.
* Implement some functions to read these properties.

Log:
2024-10-31 13:35:32 +08:00
ComixHe e03058b404 refactor!: adjust dbus interface and api of package manager
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-10-31 13:35:32 +08:00
ComixHe b203d63996 feat: support migrating data interactively
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-10-08 17:40:34 +08:00
ComixHe 6f7b243ec2 feat: add new dbus object for migrating underlying storage
Adding version '1' to dbus service 'org.deepin.linglong.PackageManager' and it's dbus object.

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-10-08 17:40:34 +08:00
myml 5b98130d57 feat: add task queue to package manager
为package manager添加任务队列功能, 避免函数被同时多次调用时
搜索应用的接口改为异步返回结果, 避免dbus超时
2024-09-26 19:09:16 +08:00
ComixHe a42c4dc9f1 refactor: cli command 'install'
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-21 13:40:00 +08:00
black-desk ee364e3007 refact: all API types use quicktype
1. Update dbus interface xml files to
   use QVariantMap as parameters and response;

2. Add api/schema/v1.yaml to generate all API types;

3. Remove qserializer.

Signed-off-by: black-desk <me@black-desk.cn>
2024-04-01 17:05:32 +08:00
ComixHe b72ecefa93 refactor(package_manager): install and upgrade
* use dbus signal to notify cli download progress
  * support cancel downloading manually
  * use eventloop instead of threadpool

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-03-15 18:00:42 +08:00
black-desk 3595a15382
chore: remove ll-service
Signed-off-by: black-desk <me@black-desk.cn>
2024-02-01 18:21:27 +08:00
myml 6c4962bdc6 fix: The issues of PM lacking permission to read layer file
修复PM没有权限读取layer文件的问题

Log:
2023-12-28 17:15:45 +08:00
kamiyadm 5712ee41f4 feat: support the operation of install layer
Install layer with ll-cli install <layer path>.

Log:
2023-12-25 13:21:34 +08:00
black-desk ef80f995a9 refact: make all exec command as QStringList
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-13 01:01:23 +08:00
black-desk ac5d7bc795
refact: remove unneed function
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-11 10:40:36 +08:00
black-desk 5e11888f8b
refact!: delete unused dbus method
Signed-off-by: Chen Linxuan <me@black-desk.cn>
2023-09-28 14:03:11 +08:00
black-desk db79c61ce1
build: mv system_helper adaptors to linglong/adaptors
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:10 +08:00
black-desk c9d82e32c9
build: mv job{_manager} adaptors to linglong/adaptors
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:09 +08:00
black-desk 23be7f5f7d
build: mv package_manager adaptor to linglong/adaptors
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:08 +08:00
black-desk 0771d23402
build: mv app_manager adaptor to linglong/adaptors
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:07 +08:00
black-desk e450e6b671
refact!: add version numbver to dbus interface
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:02 +08:00
black-desk fcc7ec5787
chore: format api/dbus/*.xml and add SPDX-* comments
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:49 +08:00
black-desk ef4f831639
chore: copy dbus xml files to api/dbus
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:30 +08:00