diff --git a/builder/builder-manifest.c b/builder/builder-manifest.c index c38dbc78..cf58d3cd 100644 --- a/builder/builder-manifest.c +++ b/builder/builder-manifest.c @@ -1357,6 +1357,8 @@ builder_manifest_checksum_for_platform (BuilderManifest *self, BuilderCache *cache, BuilderContext *context) { + GList *l; + builder_cache_checksum_str (cache, BUILDER_MANIFEST_CHECKSUM_PLATFORM_VERSION); builder_cache_checksum_str (cache, self->id_platform); builder_cache_checksum_str (cache, self->runtime_commit); @@ -1378,6 +1380,12 @@ builder_manifest_checksum_for_platform (BuilderManifest *self, else g_warning ("Can't load metadata-platform file %s: %s", self->metadata_platform, my_error->message); } + + for (l = self->expanded_modules; l != NULL; l = l->next) + { + BuilderModule *m = l->data; + builder_module_checksum_for_platform (m, cache, context); + } } gboolean diff --git a/builder/builder-module.c b/builder/builder-module.c index 3c611410..19342214 100644 --- a/builder/builder-module.c +++ b/builder/builder-module.c @@ -1411,6 +1411,14 @@ builder_module_checksum_for_cleanup (BuilderModule *self, builder_cache_checksum_strv (cache, self->cleanup); } +void +builder_module_checksum_for_platform (BuilderModule *self, + BuilderCache *cache, + BuilderContext *context) +{ + builder_cache_checksum_strv (cache, self->cleanup_platform); +} + void builder_module_set_json_path (BuilderModule *self, const char *json_path) diff --git a/builder/builder-module.h b/builder/builder-module.h index 91090d56..d07c1017 100644 --- a/builder/builder-module.h +++ b/builder/builder-module.h @@ -73,6 +73,9 @@ void builder_module_checksum (BuilderModule *self, void builder_module_checksum_for_cleanup (BuilderModule *self, BuilderCache *cache, BuilderContext *context); +void builder_module_checksum_for_platform (BuilderModule *self, + BuilderCache *cache, + BuilderContext *context); void builder_module_cleanup_collect (BuilderModule *self, gboolean platform, BuilderContext *context,