Skip to content

Commit

Permalink
fix: failed to generate app cache
Browse files Browse the repository at this point in the history
* Some config should install to /usr/lib/linglong
* Optimize error output under generateCache.

Log:
  • Loading branch information
kamiyadm committed Dec 19, 2024
1 parent ad8933b commit 7db2d89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions debian/linglong-bin.install
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ etc/X11/Xsession.d/21linglong
etc/profile.d/linglong.sh
usr/bin/ll-cli
usr/bin/llpkg
usr/lib/linglong
usr/lib/systemd/system-environment-generators/61-linglong
usr/lib/systemd/system/org.deepin.linglong.PackageManager.service lib/systemd/system/
usr/lib/systemd/user/linglong-session-helper.service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ QVariantMap PackageManager::installFromUAB(const QDBusUnixFileDescriptor &fd,
auto result = this->generateCache(newAppRef);
if (!result) {
taskRef.updateState(linglong::api::types::v1::State::Failed,
"Failed to generate some cache of " + result.error().message());
"Failed to generate some cache.\n" + result.error().message());
return;
}
}
Expand Down Expand Up @@ -1391,7 +1391,7 @@ void PackageManager::Install(PackageTask &taskContext,
auto result = this->generateCache(newRef);
if (!result) {
taskContext.updateState(linglong::api::types::v1::State::Failed,
"Failed to generate some cache of " + newRef.toString());
"Failed to generate some cache.\n" + result.error().message());
return;
}
}
Expand Down Expand Up @@ -1852,7 +1852,7 @@ void PackageManager::Update(PackageTask &taskContext,
auto result = this->generateCache(newRef);
if (!result) {
taskContext.updateState(linglong::api::types::v1::State::Failed,
"Failed to generate some cache of " + newRef.toString());
"Failed to generate some cache.\n" + result.error().message());
return;
}
}
Expand Down

0 comments on commit 7db2d89

Please sign in to comment.