[gnome-continuous/wip/new-model] resolve: Two more fixes



commit 777e5b459552ae901592e3a8da2c1e818f269b36
Author: Colin Walters <walters verbum org>
Date:   Tue Oct 8 08:24:03 2013 -0400

    resolve: Two more fixes

 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 8d1cd76..ded62d4 100644
--- a/src/js/tasks/task-resolve.js
+++ b/src/js/tasks/task-resolve.js
@@ -17,6 +17,7 @@
 
 const Gio = imports.gi.Gio;
 const Lang = imports.lang;
+const GSystem = imports.gi.GSystem;
 
 const Task = imports.task;
 const ProcUtil = imports.procutil;
@@ -43,7 +44,7 @@ const TaskResolve = new Lang.Class({
 
         let oldSnapshot = this.builddir.get_child('last-build/snapshot.json');
         if (oldSnapshot.query_exists(cancellable)) {
-            let oldBytes = GSystem.file_map_readonly(snapshotPath, cancellable);
+            let oldBytes = GSystem.file_map_readonly(oldSnapshot, cancellable);
             let oldCsum = GLib.compute_checksum_for_bytes(GLib.ChecksumType.SHA256, oldBytes);
             let newCsum = GLib.compute_checksum_for_string(GLib.ChecksumType.SHA256, buf, -1);
             if (oldCsum == newCsum)


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