aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/scriptengine.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-09-03 14:08:01 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-09-04 07:10:51 +0000
commit80bd4c413e03e3307b374982132779ddc80f914e (patch)
treeba399dd3aa492f63f810bae1a6e7296f6ec25fb8 /src/lib/corelib/language/scriptengine.h
parentf57ca14b2c2eeac1f7fedd863dc503be4638bee2 (diff)
Fix invariant in the RequestedArtifacts class
If an artifact map is requested a second time, we need to update the set of all tags if the artifacts map has changed in the meantime. This fixes an assertion in the sanity checks. Change-Id: Iacf8d4376c7a3a356428cc7eb508dbd22e945a8c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/lib/corelib/language/scriptengine.h')
-rw-r--r--src/lib/corelib/language/scriptengine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/language/scriptengine.h b/src/lib/corelib/language/scriptengine.h
index bfe238b09..eff4cb48f 100644
--- a/src/lib/corelib/language/scriptengine.h
+++ b/src/lib/corelib/language/scriptengine.h
@@ -120,9 +120,9 @@ public:
{
m_productsWithRequestedDependencies.insert(p);
}
- void setArtifactsMapRequested(const ResolvedProduct *product)
+ void setArtifactsMapRequested(const ResolvedProduct *product, bool forceUpdate)
{
- m_requestedArtifacts.setAllArtifactTags(product);
+ m_requestedArtifacts.setAllArtifactTags(product, forceUpdate);
}
void setArtifactSetRequestedForTag(const ResolvedProduct *product, const FileTag &tag)
{