aboutsummaryrefslogtreecommitdiff
path: root/include/katja/sbo.hpp
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-03-12 13:04:58 +0100
committerEugen Wissner <belka@caraus.de>2025-03-12 13:04:58 +0100
commit67d798dcb056b815b5439b05bd823a4a46843899 (patch)
tree582fea4b04a2bba623c95264daf009d4e7148aca /include/katja/sbo.hpp
parentdfa5a732bab2bf4c50c6b193cb49cd3a67aef720 (diff)
downloadkazbek-67d798dcb056b815b5439b05bd823a4a46843899.tar.gz
katja: Show only updates
Diffstat (limited to 'include/katja/sbo.hpp')
-rw-r--r--include/katja/sbo.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/katja/sbo.hpp b/include/katja/sbo.hpp
index ff16dd7..3c7a5d9 100644
--- a/include/katja/sbo.hpp
+++ b/include/katja/sbo.hpp
@@ -10,6 +10,8 @@
#include <filesystem>
#include <optional>
+#include "katja/repository.hpp"
+
namespace katja
{
struct info_file
@@ -24,6 +26,18 @@ namespace katja
const std::string homepage, const std::string& email, const std::string& maintainer);
};
+ class sbo_repository final : public repository
+ {
+ std::map<std::string, std::filesystem::path> info_paths;
+
+ public:
+ sbo_repository(const std::filesystem::path& repository_path);
+
+ std::vector<package_identifier> get_updates(const package_database& database) override;
+ };
+
std::optional<info_file> read_slackbuild_info(const std::filesystem::path& info_filepath);
void search_for_slackbuilds(std::vector<info_file>& info_files, const std::filesystem::path& directory);
+ void search_for_slackbuilds(std::map<std::string, std::filesystem::path>& info_files,
+ const std::filesystem::path& directory);
}