summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/content_git_map.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-08-10 15:44:16 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-08-14 15:09:11 +0200
commita9694ba06acc9ea225f83bbd31f93cbedec4ff0c (patch)
treea6ae896c965c6d99052167bba3ccbd22948730ca /src/other_tools/root_maps/content_git_map.cpp
parentaee1a0c7df5b86c08c4ac3188b3635f8f9879129 (diff)
downloadjustbuild-a9694ba06acc9ea225f83bbd31f93cbedec4ff0c.tar.gz
ArchiveOps: reduce verbosity in archive type enum
Diffstat (limited to 'src/other_tools/root_maps/content_git_map.cpp')
-rw-r--r--src/other_tools/root_maps/content_git_map.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/other_tools/root_maps/content_git_map.cpp b/src/other_tools/root_maps/content_git_map.cpp
index 0c991ef1..7f0b30e0 100644
--- a/src/other_tools/root_maps/content_git_map.cpp
+++ b/src/other_tools/root_maps/content_git_map.cpp
@@ -31,12 +31,10 @@ namespace {
std::filesystem::path const& dst_dir) noexcept
-> std::optional<std::string> {
if (repo_type == "archive") {
- return ArchiveOps::ExtractArchive(
- ArchiveType::kArchiveTypeTar, archive, dst_dir);
+ return ArchiveOps::ExtractArchive(ArchiveType::Tar, archive, dst_dir);
}
if (repo_type == "zip") {
- return ArchiveOps::ExtractArchive(
- ArchiveType::kArchiveTypeZip, archive, dst_dir);
+ return ArchiveOps::ExtractArchive(ArchiveType::Zip, archive, dst_dir);
}
return "unrecognized repository type";
}