[gnome-boxes/wip/kalev/ovf-support] installed-media: Load and extract .ova async
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/kalev/ovf-support] installed-media: Load and extract .ova async
- Date: Thu, 10 May 2018 16:09:04 +0000 (UTC)
commit a21725304164f1bf2299a765e2d54a28080fd0c2
Author: Felipe Borges <felipeborges gnome org>
Date: Thu May 10 18:02:41 2018 +0200
installed-media: Load and extract .ova async
Since commits 4aad2ce and 5306e74 in libvof-glib, we are able to
perform asynchronously both the loading of ova files and the
extraction of disks.
src/installed-media.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/installed-media.vala b/src/installed-media.vala
index 789dadc1..16a2586c 100644
--- a/src/installed-media.vala
+++ b/src/installed-media.vala
@@ -166,11 +166,11 @@ private async bool extract_ovf () throws GLib.Error {
var ova_file = File.new_for_path (device_file);
var ovf_package = new Govf.Package ();
- ovf_package.load_from_ova_file (device_file);
+ yield ovf_package.load_from_ova_file (device_file, null);
var disks = ovf_package.get_disks ();
var extracted_path = get_user_pkgcache (ova_file.get_basename () + ".vmkd");
- ovf_package.extract_disk (disks [0], extracted_path);
+ yield ovf_package.extract_disk (disks [0], extracted_path, null);
debug ("Extracted '%s' from '%s'.", extracted_path, device_file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]