builder: Checksum cleanup-platform for platform

tingping/wmclass
Alexander Larsson 2017-02-21 15:09:50 +01:00
parent 1ca3c86552
commit 608374e57a
3 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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)

View File

@ -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,