From bedf128a9ac1d6ac25835d1c5d68229766656457 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 16 Jul 2014 17:58:06 +0200 Subject: Take product type changes into account when change tracking. This property is special: We cannot just test for relevance by checking whether it is used in any transformers, because changing it can cause new transformers to get pulled in. Task-number: QBS-650 Change-Id: If18495b47c7238fc8a1256146f4e935ce9655b18 Reviewed-by: Joerg Bornemann --- src/lib/corelib/buildgraph/buildgraphloader.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/corelib/buildgraph') diff --git a/src/lib/corelib/buildgraph/buildgraphloader.cpp b/src/lib/corelib/buildgraph/buildgraphloader.cpp index 4ea222fcf..f2f4c3c54 100644 --- a/src/lib/corelib/buildgraph/buildgraphloader.cpp +++ b/src/lib/corelib/buildgraph/buildgraphloader.cpp @@ -520,6 +520,12 @@ bool BuildGraphLoader::checkForPropertyChanges(const ResolvedProductPtr &restore if (checkTransformersForPropertyChanges(restoredProduct, newlyResolvedProduct)) return true; + if (restoredProduct->fileTags != newlyResolvedProduct->fileTags) { + m_logger.qbsTrace() << "Product type changed from " << restoredProduct->fileTags + << "to " << newlyResolvedProduct->fileTags; + return true; + } + if (checkProductForInstallInfoChanges(restoredProduct, newlyResolvedProduct)) return true; if (!artifactPropertyListsAreEqual(restoredProduct->artifactProperties, -- cgit v1.2.3