diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-03-26 23:20:16 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-03-26 23:20:16 +0100 |
| commit | 7906bd3ecbd7fa3855c9ee346911feada20438d3 (patch) | |
| tree | 7a29d53688fd874b724e5340993c765a02c9c861 /include | |
| parent | a05bd27cafd90006f4ebf3b6b1840e16cb0ad986 (diff) | |
| download | kazbek-7906bd3ecbd7fa3855c9ee346911feada20438d3.tar.gz | |
Katja: Add search_names function
Diffstat (limited to 'include')
| -rw-r--r-- | include/katja/repository.hpp | 2 | ||||
| -rw-r--r-- | include/katja/sbo.hpp | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/katja/repository.hpp b/include/katja/repository.hpp index 0a799bd..cde9ca0 100644 --- a/include/katja/repository.hpp +++ b/include/katja/repository.hpp @@ -26,5 +26,7 @@ namespace katja { public: virtual std::vector<package_identifier> get_updates(const package_database& database) = 0; + virtual std::vector<package_identifier> search_names(const std::string& architecture, + const std::string& needle) = 0; }; } diff --git a/include/katja/sbo.hpp b/include/katja/sbo.hpp index 3c7a5d9..ba46509 100644 --- a/include/katja/sbo.hpp +++ b/include/katja/sbo.hpp @@ -24,6 +24,8 @@ namespace katja info_file(const std::string& program_name, const std::string& version, const std::string homepage, const std::string& email, const std::string& maintainer); + + package_identifier identifier_for(const std::string& architecture); }; class sbo_repository final : public repository @@ -34,10 +36,9 @@ namespace katja sbo_repository(const std::filesystem::path& repository_path); std::vector<package_identifier> get_updates(const package_database& database) override; + std::vector<package_identifier> search_names(const std::string& architecture, + const std::string& needle) 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); } |
