diff options
author | saturneric <[email protected]> | 2024-12-01 00:33:15 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-01 02:00:27 +0000 |
commit | 3af4fcb32ee399927aa1a99db6c197698eb09aaf (patch) | |
tree | e0603f5e700e51003b9ae727ed582717183b8b33 /src/cmd.cpp | |
parent | Merge branch 'dev/2.1.5/mingw' into develop (diff) | |
download | GpgFrontend-3af4fcb32ee399927aa1a99db6c197698eb09aaf.tar.gz GpgFrontend-3af4fcb32ee399927aa1a99db6c197698eb09aaf.zip |
fix: solve build issues in devops process
Diffstat (limited to 'src/cmd.cpp')
-rw-r--r-- | src/cmd.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/cmd.cpp b/src/cmd.cpp index d56f1c8a..89a0be95 100644 --- a/src/cmd.cpp +++ b/src/cmd.cpp @@ -35,14 +35,13 @@ #include <qtextstream.h> #include "core/GpgCoreInit.h" -#include "core/model/SettingsObject.h" #include "core/module/ModuleManager.h" -#include "core/struct/settings_object/KeyDatabaseListSO.h" #include "core/utils/BuildInfoUtils.h" // GpgFrontend #include "GpgFrontendContext.h" +#include "core/utils/GpgUtils.h" #include "test/GpgFrontendTest.h" namespace GpgFrontend { @@ -80,6 +79,8 @@ auto PrintEnvInfo() -> int { stream << Tr("OpenSSL Version: ") << GetProjectOpenSSLVersion() << '\n'; stream << Tr("Libarchive Version: ") << GetProjectLibarchiveVersion() << '\n'; + + stream << '\n'; stream << Tr("GnuPG: ") << '\n'; @@ -150,12 +151,9 @@ auto PrintEnvInfo() -> int { stream << "Key Database(s): " << '\n'; stream << '\n'; - auto key_database_list = - KeyDatabaseListSO(SettingsObject("key_database_list")); - const auto key_databases = key_database_list.key_databases; - int index = 0; - for (const auto& key_database : key_databases) { + auto key_dbs = GetGpgKeyDatabaseInfos(); + for (const auto& key_database : key_dbs) { stream << Tr("Key Database [") << index++ << "] " << Tr("Name: ") << key_database.name << " " << Tr("-> Path: ") << key_database.path << '\n'; |