Revert "Android: print tailored warning if qml dependency path is a dir"

This reverts commit c730a29260eda298683803bfd5306926696eedb0.

Reason for revert: The original change was wrong and caused
androiddeployqt to skip valid QML resource paths. 

Additionally, change log output from "file" to "path" when skipping
an import path.

Fixes: QTBUG-89281
Change-Id: Ic338d147a04a03bb1d7acbede11b647ff036922a
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
(cherry picked from commit fa0dc8313506b993ef0bd43ea5f38739cd58bcbd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Assam Boudjelthia 2020-12-09 14:12:45 +00:00 committed by Qt Cherry-pick Bot
parent 0908175a1a
commit 6f0129d205

View File

@ -1882,16 +1882,10 @@ bool scanImports(Options *options, QSet<QString> *usedDependencies)
QFileInfo info(path);
if (info.isDir()) {
if (options->verbose)
fprintf(stdout, " -- Skipping because path is a directory.\n");
continue;
}
// The qmlimportscanner sometimes outputs paths that do not exist.
if (!info.exists()) {
if (options->verbose)
fprintf(stdout, " -- Skipping because file does not exist.\n");
fprintf(stdout, " -- Skipping because path does not exist.\n");
continue;
}
@ -1901,7 +1895,7 @@ bool scanImports(Options *options, QSet<QString> *usedDependencies)
if (absolutePath.startsWith(rootPath)) {
if (options->verbose)
fprintf(stdout, " -- Skipping because file is in QML root path.\n");
fprintf(stdout, " -- Skipping because path is in QML root path.\n");
continue;
}