diff --git a/README.md b/README.md index a9c756c..1018009 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Main Menu | | ├── Edit Pacman Mirror Configuration | | └── Rank Mirrors by Speed | | -│ └── Refresh Pacman Keys (TODO) +│ └── Refresh Pacman Keys | ├── Install System │ ├── Install Base Packages diff --git a/src/tui.cpp b/src/tui.cpp index d72005e..59bc605 100644 --- a/src/tui.cpp +++ b/src/tui.cpp @@ -2216,9 +2216,15 @@ void prep_menu() noexcept { case 4: case 6: case 8: - case 9: SPDLOG_ERROR("Implement me!"); break; + case 9: +#ifdef NDEVENV + utils::arch_chroot("pacman-key --init;pacman-key --populate archlinux cachyos;pacman-key --refresh-keys;"); +#else + SPDLOG_DEBUG("({}) Function is doing nothing in dev environment!", __PRETTY_FUNCTION__); +#endif + break; case 10: tui::set_cache(); break;