[gnome-boxes] installed-media: Rename 'convert_to_native_format'



commit 82e9b1b151c203261ebf3fb746240f0dc41eb2f8
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Nov 12 15:25:21 2013 +0000

    installed-media: Rename 'convert_to_native_format'
    
    Rename 'convert_to_native_format' method to just 'copy'. The conversion
    part is internal detail.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=666185

 src/installed-media.vala |    3 ++-
 src/vm-importer.vala     |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/installed-media.vala b/src/installed-media.vala
index aeb209d..31e41bc 100644
--- a/src/installed-media.vala
+++ b/src/installed-media.vala
@@ -66,7 +66,8 @@ private class Boxes.InstalledMedia : Boxes.InstallerMedia {
         label_setup ();
     }
 
-    public async void convert_to_native_format (string destination_path) throws GLib.Error {
+    // Also converts to native format (QCOW2)
+    public async void copy (string destination_path) throws GLib.Error {
         var decompressed = yield decompress ();
 
         string[] argv = { "qemu-img", "convert", "-O", "qcow2", device_file, destination_path };
diff --git a/src/vm-importer.vala b/src/vm-importer.vala
index c96aa79..262451a 100644
--- a/src/vm-importer.vala
+++ b/src/vm-importer.vala
@@ -38,7 +38,7 @@ private class Boxes.VMImporter : Boxes.VMCreator {
         try {
             var destination_path = machine.storage_volume.get_path ();
 
-            yield source_media.convert_to_native_format (destination_path);
+            yield source_media.copy (destination_path);
 
             // Without refreshing the pool, libvirt will not know of changes to volume we just made
             var pool = yield get_storage_pool ();


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