Commit Graph

1217 Commits

Author SHA1 Message Date
black-desk 3e91aa19a5
refact: remove log_handler
As all daemon started as systemd service, log_handler is no longer
needed.

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:48 +08:00
black-desk 45c7a712b9
chore: remove a unused header
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:47 +08:00
black-desk 9580421e97
fix: correct pointer type
Use correct type of pointer.

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:46 +08:00
black-desk eaac0c1cc6
refact: remove old serializer
Remove old serializer, update serializer related code to use
qserializer.

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:45 +08:00
black-desk 6ce060c13b
refact: update qserializer for dbus support
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:44 +08:00
black-desk 681fba1d62
refact: add qserializer/deprecated.h
- Add a single header for source code level compatibility.

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:43 +08:00
black-desk fcd7016d40
refact: add qserializer
- Copy from black-desk/qserializer f1191887bb657eb154b942e5e8977ce257e3719d;
- Add some functions for JSON and YAML.

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:42 +08:00
black-desk bd08ba69d4
build: update to c++17
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:41 +08:00
Chen Linxuan 79566ba248
refact: rename info.cpp to ref.cpp
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:40 +08:00
Chen Linxuan abcbc5b80d
refact: clean header
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:39 +08:00
Chen Linxuan 7ec5193a11
refact: remove repohelper.h
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:38 +08:00
Chen Linxuan 305fc20496
refact: reimplement Error class
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:37 +08:00
Chen Linxuan 44c43a90bb
refact: split error.h into cpp/h
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:36 +08:00
Chen Linxuan fe8f4688fc
refact: remove RepoHelper::repoPull
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:35 +08:00
Chen Linxuan 075e040909
refact: remove RepoHelper::queryMatchRefs
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:34 +08:00
deepin-admin-bot ef09aa5b50 chore: Sync by 559e91167d
sync by github workflow

Log: none
Influence: none
2023-07-10 06:33:23 +00:00
kamiyadm 76d298ddcb fix: some file which is not ELF is also not stripped
-

Log:
2023-07-04 12:29:57 +08:00
kamiyadm dce9d937fc fix: incorrect prompt when installing non-app types
-

Log:
2023-07-03 16:51:02 +08:00
kamiyadm 3da399db8b feat: support display the current info of repo
-

Log:
2023-06-19 16:48:42 +08:00
hudeng 4b4ab5bfe7 chore(CI): Update obs tag build workflow
use obs unstable package directly

log:
2023-06-15 17:57:18 +08:00
deepin-admin-bot f60f7f9c88 chore: Sync by 2e5e092ba3
sync by github workflow

Log: none
Influence: none
2023-05-10 02:26:15 +00:00
chenhuixing e9dd54d075 fix: install app with default verison is wrong
If the app is already installed, we should compare the local
version with the remote version. And the remote version of app
should not be installed if the local version is bigger than the
remote version.

Log:
2023-04-21 05:15:06 +00:00
Felix Yan 40dc78f453 chore: fix typos in main.cpp
Fix typos in main.cpp
2023-04-20 07:21:47 +08:00
alazymechnaic efa38088f5 fix: remove unused functions with vulnerability
@alazymechnaic: There is a fatal injection vulnerability in the
extractUap, extractUapData, and makeData functions.

@black-desk: As these functions are not used any more, let's just
remove them.

Signed-off-by: black-desk <me@black-desk.cn>
2023-04-18 09:42:41 +08:00
chenhuixing e57b0737e5
fix: fix some warning of test
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-03-30 10:38:48 +08:00
black-desk e16b252269
fix: remove a test
Should use mock.

Signed-off-by: black-desk <me@black-desk.cn>
2023-03-30 10:38:47 +08:00
chenhuixing 5b4a075b5b
fix: fix some warning
-

Signed-off-by: black-desk <me@black-desk.cn>
2023-03-30 10:38:46 +08:00
tsic404 1d0eb3a0d6 ci: add OBS workflows
* add OBS workflows;
* update reuse.
2023-03-28 14:48:20 +08:00
chenhuixing 58f95ffd7a feat: add a section to the desktop entry
Add 'X-linglong=${appId}' to the desktop entry to indicate
 that this is a linglong application.

Log:
2023-03-14 16:14:18 +08:00
Chen Linxuan 0c56d55de1 docs: remove old comment
This problem has gone.
2023-03-06 15:41:47 +08:00
Chen Linxuan a16507b04e fix: add header for qt 5.11
-
2023-03-06 15:41:47 +08:00
Chen Linxuan baa112cd12 chore: clean up include
-
2023-03-06 15:41:47 +08:00
Chen Linxuan e98f0a57d7 chore: fix an unused variable warning
-
2023-03-06 15:41:47 +08:00
Chen Linxuan 95b96eff2b chore: fix an assigned but not read warning
-
2023-03-06 15:41:47 +08:00
Chen Linxuan 9552193603 fix: fix a mem leak
-
2023-03-06 15:41:47 +08:00
Chen Linxuan bbc6e8aaac chore: remove Error copy constructor
It's e same as the auto generated one.
2023-03-06 15:41:47 +08:00
Chen Linxuan 880f8dbfa8 chore: add an error message
-
2023-03-06 15:41:47 +08:00
Chen Linxuan 40079c4ed4 refact: remove unused flatpak support
-
2023-03-06 15:41:47 +08:00
Chen Linxuan 9fe08818ea fix: correct parent usage
- There are some QObject take a parent as constructor argument, but not
  really construct the QObject base object with that. I fix them in
  this commit.
- There are some non-QObject take a parent as constructor argument,
  which has no effect at all. I remove them in this commit, too.
2023-03-06 15:41:47 +08:00
Chen Linxuan 3901f79b3a chore: fix a deprecated warning
As the current qt5 LTS 5.15 deprecated QString::SkipEmptyParts, we
switch to Qt::SkipEmptyParts.
2023-03-06 15:41:47 +08:00
Chen Linxuan 62994019e7 fix: return errno in command_helper
-
2023-03-06 15:41:47 +08:00
Chen Linxuan 0e8388232b fix: make DesktopEntry::rawValue use default value
-
2023-03-06 15:41:47 +08:00
Chen Linxuan 59034037af chore: fix unused argument warning
-
2023-03-06 15:41:47 +08:00
Chen Linxuan e9fb34b940 build: clean up CMakeLists.txt
-
2023-03-06 15:41:47 +08:00
Chen Linxuan dbf1a75ab1 test: disable some tests
-
2023-03-06 15:41:47 +08:00
Chen Linxuan 4487189bd3 test: fix Ref test
I just update the wrong test.

Use toStdString to make google test framework print human readable
output when test fails.
2023-03-06 15:41:47 +08:00
Chen Linxuan b13608eec3 chore: remove wrong comment
The comment not match the code. I just remove them.
2023-03-06 15:41:47 +08:00
Chen Linxuan caeb791774 test: remove some tests
- All tests in test/manager_test.cpp start a new process on dbus, which
  is ridiculous. I remove them as them will not work at all;
- Remove all app status test as them will effect the real database in
  use.
- httpclient_test will make actually http requests to the server, which
  will always failed when test offline.
- config test will be effected by XDG_CONFIG_DIRS
2023-03-06 15:41:47 +08:00
Chen Linxuan 56247d1e97 test: enable test
-
2023-03-06 15:41:47 +08:00
Chen Linxuan 24ac010ffc chore: add a fixme comment
-
2023-03-06 15:41:47 +08:00