Fix: send output to CONSOLE if directories are actually not equal.
This commit is contained in:
parent
f60cd9e4ef
commit
55c82eb509
@ -1082,7 +1082,7 @@ bool Worker::syncCustomerRepositoryAndFS() {
|
|||||||
// now check tariff-files in etc and /etc/psa_tariff
|
// now check tariff-files in etc and /etc/psa_tariff
|
||||||
QDir dir1(QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/psa_tariff"));
|
QDir dir1(QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/psa_tariff"));
|
||||||
QDir dir2("/etc/psa_tariff");
|
QDir dir2("/etc/psa_tariff");
|
||||||
if (Utils::sameFilesInDirs(dir1, dir2)) {
|
if (Utils::sameFilesInDirs(dir1, dir2) == false) {
|
||||||
CONSOLE() << QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/psa_tariff")
|
CONSOLE() << QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/psa_tariff")
|
||||||
<< "AND /etc/psa_tariff ARE DIFFERENT: CHANGED CUSTOMER-NUMBER?";
|
<< "AND /etc/psa_tariff ARE DIFFERENT: CHANGED CUSTOMER-NUMBER?";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user