diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-03-12 13:04:58 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-03-12 13:04:58 +0100 |
| commit | 67d798dcb056b815b5439b05bd823a4a46843899 (patch) | |
| tree | 582fea4b04a2bba623c95264daf009d4e7148aca /katja/repository.cpp | |
| parent | dfa5a732bab2bf4c50c6b193cb49cd3a67aef720 (diff) | |
| download | kazbek-67d798dcb056b815b5439b05bd823a4a46843899.tar.gz | |
katja: Show only updates
Diffstat (limited to 'katja/repository.cpp')
| -rw-r--r-- | katja/repository.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/katja/repository.cpp b/katja/repository.cpp index e9a345c..270ffec 100644 --- a/katja/repository.cpp +++ b/katja/repository.cpp @@ -3,6 +3,25 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +#include "katja/repository.hpp" + namespace katja { + std::string package_identifier::to_string() const + { + std::string identifier; + const std::size_t total_size = this->name.size() + this->version.size() + + this->architecture.size() + this->data.size() + 3; + + identifier.reserve(total_size); + identifier.append(this->name); + identifier.push_back(';'); + identifier.append(this->version); + identifier.push_back(';'); + identifier.append(this->architecture); + identifier.push_back(';'); + identifier.append(this->data); + + return identifier; + } } |
