Created
January 6, 2017 20:31
-
-
Save dbnicholson/4cd92c8a09a7295073d673970699e591 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/builder/builder-main.c b/builder/builder-main.c | |
index fd04c31..40532e8 100644 | |
--- a/builder/builder-main.c | |
+++ b/builder/builder-main.c | |
@@ -450,6 +450,22 @@ main (int argc, | |
if (!opt_build_only) | |
{ | |
+ /* Fetch changes for cleanup if no build was done here */ | |
+ if (opt_finish_only) | |
+ { | |
+ GList *l; | |
+ | |
+ for (l = manifest->expanded_modules; l != NULL; l = l->next) | |
+ { | |
+ BuilderModule *m = l->data; | |
+ g_autoptr(GPtrArray) changes = NULL; | |
+ | |
+ changes = builder_cache_get_changes (cache, &error); | |
+ if (changes != NULL) | |
+ builder_module_set_changes (m, changes); | |
+ } | |
+ } | |
+ | |
if (!builder_manifest_cleanup (manifest, cache, build_context, &error)) | |
{ | |
g_printerr ("Error: %s\n", error->message); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment