[gnome-continuous] task-resolve: Fix logic error in handling child components



commit 76f572623c36983e1ad80c6686c99c93062ff0fd
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Jul 17 14:17:01 2014 -0400

    task-resolve: Fix logic error in handling child components
    
    Don't clear the modified status of the cache if the child
    component hasn't changed.

 src/js/tasks/task-resolve.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/js/tasks/task-resolve.js b/src/js/tasks/task-resolve.js
index e470cf1..3bfd550 100644
--- a/src/js/tasks/task-resolve.js
+++ b/src/js/tasks/task-resolve.js
@@ -100,7 +100,8 @@ const TaskResolve = new Lang.Class({
         if (component['child-components']) {
             let childComponents = component['child-components'];
             for (let i = 0; i < childComponents.length; i++) {
-                modifiedCache = this._storeComponentRevision(childComponents[i], resolveCache, cancellable);
+                if (this._storeComponentRevision(childComponents[i], resolveCache, cancellable))
+                    modifiedCache = true;
             }
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]