[gnome-continuous] zdisks: Tag exported disk images with build number



commit 0a56f6c2423ad3bb233e63ee2bc4ac3025497799
Author: Colin Walters <walters verbum org>
Date:   Thu Sep 26 18:15:41 2013 -0400

    zdisks: Tag exported disk images with build number
    
    This will be used at least by Boxes to show a version number.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707865

 src/js/tasks/task-builddisks.js |    1 +
 src/js/tasks/task-zdisks.js     |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/js/tasks/task-builddisks.js b/src/js/tasks/task-builddisks.js
index b42747f..525fe72 100644
--- a/src/js/tasks/task-builddisks.js
+++ b/src/js/tasks/task-builddisks.js
@@ -63,6 +63,7 @@ const TaskBuildDisks = new Lang.Class({
 
         let latestPath = builddb.getLatestPath();
         let buildVersion = builddb.parseVersionStr(latestPath.get_basename());
+        this._buildVersion = buildVersion;
         let buildData = builddb.loadFromPath(latestPath, cancellable);
 
         let targetImageDir = baseImageDir.get_child(buildVersion);
diff --git a/src/js/tasks/task-zdisks.js b/src/js/tasks/task-zdisks.js
index 334c19c..bc15550 100644
--- a/src/js/tasks/task-zdisks.js
+++ b/src/js/tasks/task-zdisks.js
@@ -40,7 +40,7 @@ const TaskZDisks = new Lang.Class({
 
     _postDiskCreation: function(diskPath, cancellable) {
         let parent = diskPath.get_parent();
-        let outPath = parent.get_child(diskPath.get_basename() + '.gz');
+        let outPath = parent.get_child(diskPath.get_basename() + '-' + this._buildVersion + '.gz');
         let outStream = outPath.create(Gio.FileCreateFlags.REPLACE_DESTINATION, cancellable);
         let compressor = Gio.ZlibCompressor.new(Gio.ZlibCompressorFormat.GZIP, 7);
         let outConverter = Gio.ConverterOutputStream.new(outStream, compressor);


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