black-desk
6fd9a4856b
fix: use value captured dbus connection in main
...
systemBus() and sessionBus() is not return a reference but a value.
This value captured by address in a lambda cause crash when that value
is gone.
So we use a value capture here to fix it.
2023-12-13 11:24:34 +08:00
black-desk
4a884bfbc5
fix(repo): disconnect signal to avoid crash
...
The lambda connected to signal will be called next time network responds
arrive even when loop is gone, which make program crash.
2023-12-13 11:10:03 +08:00
kamiyadm
9d742ce094
fix: build failed in ostree_repo.cpp
...
Remove static from struct OstreeRepoDeleter.
Log:
2023-12-13 10:21:57 +08:00
black-desk
9cf1eee391
fix: do not install test
...
we should not install test binary
2023-12-12 17:58:40 +08:00
kamiyadm
68eb544741
fix: some app failed to share data by /tmp
...
Temporarily mount the host /tmp into the container.
Log:
2023-12-12 17:42:40 +08:00
black-desk
b09375b5c2
chore: add ostree as build deps
...
tests need ostree command to run
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
afd4a6b1d9
tests: make test can run parallelly
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
504a182c69
chore: update reuse comments
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
774aea8759
tests(repo): update tests
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
f02afe6dbe
refact: remove some methods in Repo
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
4b1bc1f8ab
feat: add QDebug operator for Error
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
d22fe3c762
fix: correct use LINGLONG_EWRAP
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
5e9277df7c
build: use CTest
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
99735f5db8
fix: fix some mem leak
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
65053cf335
refact: remove remoteAdd and remoteDelete
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
f6bd1d3da1
tests: add main.cpp
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
7295448476
refact(OSTreeRepo): rewrite constructor
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
linxin
b709b422ae
feat: add unit test for repo module
...
add unit test
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk
d3c0d9dc3f
refact(repo): update ensureRepoEnv
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
myml
1dd4eb710c
feat: QueryApps add unit tests
...
QueryApps添加单元测试
Log:
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-04 11:49:12 +08:00
black-desk
5d71e0861f
refact: inject repo::RepoClient
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 11:35:35 +08:00
black-desk
43299e93b7
refact: remove unused RepoClient::Auth
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 11:32:03 +08:00
myml
9e506dd7e7
feat: rewrite QueryApps method
...
使用新的http client重写QueryApps方法
Log:
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 11:32:03 +08:00
myml
a66ac84558
feat: use openapi generator cpp code for http api
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 09:03:59 +08:00
black-desk
899af87296
build: temporary fix of CPM.cmake bug
...
When nlohmann_json is installed instead of downloaded by CPM,
CPM seems failed to find that library when compiling ytj.
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 09:03:58 +08:00
black-desk
22f309358d
chore: update ytj
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 09:03:57 +08:00
black-desk
a86d456693
docs: add description for builder configuration.
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 09:03:54 +08:00
Felix Yan
28d39f749f
chore: correct a typo in project.cpp
...
Log:
2023-11-27 19:46:00 +08:00
black-desk
c82b064287
chore: update reuse comments
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-24 09:54:17 +08:00
linxin
4c8681b5e5
refact: use libostree
...
Refact ostree_repo from call ostree command to use libostree.
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-24 09:54:16 +08:00
linxin
f0ea664a1f
refact: refact repo module error handling
...
rewrite util::error by utils::error
Log: rewrite error handing
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-24 09:54:14 +08:00
black-desk
8e2501f24d
refact(utils): update error handling macros
...
add LINGLONG_ prefix
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-23 15:30:21 +08:00
black-desk
a5738a1cb9
chore: update reuse config
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-20 13:49:02 +08:00
black-desk
e271bc2e89
refact: remove unused method
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-20 13:49:02 +08:00
black-desk
e92e7b2b74
refact: add quicktype
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-20 13:49:02 +08:00
black-desk
85c46d0b77
chore: add ytj
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-20 13:49:02 +08:00
black-desk
688e89d707
tests: add test for error::Result
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-20 13:49:02 +08:00
black-desk
e5eead9d91
refact(builder): merge Project and ProjectPrivate
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-17 09:55:08 +08:00
black-desk
309cef9ff1
refact: introduce new Reference
...
1. introduce new Reference to replace old Ref;
2. upgrade tl-expected to 1.1.0;
https://github.com/TartanLlama/expected/issues/61
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-16 15:43:36 +08:00
black-desk
c834125382
fix: use Qt::QueuedConnection
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-15 09:50:10 +08:00
black-desk
853506d142
fix: correct console printer
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-15 09:50:10 +08:00
black-desk
7172ba9d80
refact: remove JobManagerPrivate
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-15 09:50:10 +08:00
black-desk
59a47b5ebd
fix: register job manager
...
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-15 09:50:10 +08:00
Felix Yan
9a5bc3f147
chore: correct typos for "environment"
...
Log:
2023-11-14 16:41:40 +08:00
black-desk
e9393e9e3b
refact: remove pkg manager in ll-cli
...
use p2p dbus to call method from package_manager in ll-cli.
2023-11-13 01:01:23 +08:00
black-desk
34d51a4be5
tests: clean up ll-cli tests
...
1. use unique name for printer methods for easy mock;
2. update some log message.
2023-11-13 01:01:23 +08:00
black-desk
ca9d9f8699
chore: remove function name in error
...
Remove function name keep in error_impl.
2023-11-13 01:01:23 +08:00
black-desk
01b6189750
fix(cli): correct json output
...
1. error should also print as json;
2. as all other json.
2023-11-13 01:01:23 +08:00
black-desk
eb60cfbb80
refact: do not inject pkgManImpl
...
Run package manager directly in ll-cli is just a workaround.
Check comment for later refact note.
2023-11-13 01:01:23 +08:00
black-desk
45c88bb337
refact: use about to quit in main
...
`finally` runs after QCoreApplication::exec return.
2023-11-13 01:01:23 +08:00