From df4e384d9d80c81d948cc7509fccd73b26cb1c69 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 26 Aug 2025 14:34:50 +0200 Subject: [PATCH] Minor: define constants for case of clone --- .../process/check_and_fetch_customer_repository_command.cpp | 3 +++ common/include/utils_internal.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/UpdatePTUDevCtrl/process/check_and_fetch_customer_repository_command.cpp b/UpdatePTUDevCtrl/process/check_and_fetch_customer_repository_command.cpp index f2520af..f4b15e9 100644 --- a/UpdatePTUDevCtrl/process/check_and_fetch_customer_repository_command.cpp +++ b/UpdatePTUDevCtrl/process/check_and_fetch_customer_repository_command.cpp @@ -49,6 +49,9 @@ void CheckAndFetchCustomerRepositoryCommand::readyReadStandardOutput() { } else if (m_commandResult.contains(internal::GIT_CUSTOMER_REPO_UPDATED)) { //emit w->showCustRepoStatus(internal::GIT_CUSTOMER_REPO_UPDATED); + } else + if (m_commandResult.contains(internal::GIT_CUSTOMER_REPO_CLONED)) { + //emit w->showCustRepoStatus(internal::GIT_CUSTOMER_REPO_CLONED); } } } diff --git a/common/include/utils_internal.h b/common/include/utils_internal.h index 6d88d97..4b4b1d3 100644 --- a/common/include/utils_internal.h +++ b/common/include/utils_internal.h @@ -35,6 +35,7 @@ namespace internal { static constexpr const int GIT_PULL_ERROR_CODE{-4}; static constexpr const int GIT_NOT_NECESSARY_CODE{1}; static constexpr const int GIT_UPDATED_CODE{2}; + static constexpr const int GIT_CLONED_CODE{3}; static constexpr const char *GIT_CUSTOMER_REPO_CHECKOUT_ERROR{"checkout error"}; static constexpr const char *GIT_CUSTOMER_REPO_PULL_ERROR{"pull error"}; @@ -42,6 +43,7 @@ namespace internal { static constexpr const char *GIT_CUSTOMER_REPO_NO_UPDATE_NECESSARY{"no repository update necessary"}; static constexpr const char *GIT_CUSTOMER_REPO_NOT_NECESSARY{"not necessary"}; static constexpr const char *GIT_CUSTOMER_REPO_UPDATED{"repository updated"}; + static constexpr const char *GIT_CUSTOMER_REPO_CLONED{"repository cloned"}; static constexpr const char *GIT_UPDATED{"updated"}; static constexpr const char *EXEC_OPKG_COMMANDS_SUCCESS{"success"};