From a5e015475797572871006511659c15a93e07b701 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 8 Mar 2024 08:44:39 +0100 Subject: [PATCH] Do not check if etc/psa_tariff and /etc/psa_tariff are equal after the rsync: reason is that this might be not the case if the customer-number has been changed. --- UpdatePTUDevCtrl/worker.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/UpdatePTUDevCtrl/worker.cpp b/UpdatePTUDevCtrl/worker.cpp index f5f0713..9eb3100 100644 --- a/UpdatePTUDevCtrl/worker.cpp +++ b/UpdatePTUDevCtrl/worker.cpp @@ -991,10 +991,12 @@ bool Worker::syncCustomerRepositoryAndFS() { QDir dir1(QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/psa_tariff")); QDir dir2("/etc/psa_tariff"); if (Utils::sameFilesInDirs(dir1, dir2)) { - CONSOLE() << UPDATE_STEP::SYNC_CUSTOMER_REPOSITORY_SUCCESS; - setProgress(_SYNC_CUSTOMER_REPOSITORY_SUCCESS); - return true; + CONSOLE() << QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/psa_tariff") + << "AND /etc/psa_tariff ARE DIFFERENT: CHANGED CUSTOMER-NUMBER?"; } + CONSOLE() << UPDATE_STEP::SYNC_CUSTOMER_REPOSITORY_SUCCESS; + setProgress(_SYNC_CUSTOMER_REPOSITORY_SUCCESS); + return true; } } }