[gnome-boxes] installer: Drop all install size assumptions



commit a5b457f7a292703e6f0de064e93c48a9affa7142
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Aug 31 20:11:09 2012 +0300

    installer: Drop all install size assumptions
    
    Turns out this informtion is not only dependent on the OS and our
    control over the installer but also on the exact media and architecture
    as well.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682300

 src/fedora-installer.vala |    6 ------
 src/installer-media.vala  |    3 +--
 src/win7-installer.vala   |    6 ------
 src/winxp-installer.vala  |    6 ------
 4 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/src/fedora-installer.vala b/src/fedora-installer.vala
index f7a0f36..35b85aa 100644
--- a/src/fedora-installer.vala
+++ b/src/fedora-installer.vala
@@ -1,12 +1,6 @@
 // This file is part of GNOME Boxes. License: LGPLv2+
 
 private class Boxes.FedoraInstaller: UnattendedInstaller {
-    public override uint64 installed_size {
-        get {
-            return express_install? 2922930176 : 0;
-        }
-    }
-
     private File kernel_file;
     private File initrd_file;
 
diff --git a/src/installer-media.vala b/src/installer-media.vala
index 881ff8e..64b7cdb 100644
--- a/src/installer-media.vala
+++ b/src/installer-media.vala
@@ -13,8 +13,7 @@ private class Boxes.InstallerMedia : GLib.Object {
     public string mount_point;
     public bool from_image;
 
-    // FIXME: Currently our OS-specific subclasses provide this info but once we start using libosinfo's API for
-    //        express installation, this info should come from there.
+    // FIXME: Currently this information is always unknown so practically we never show any progress for installations.
     public virtual uint64 installed_size { get { return 0; } }
     public virtual bool need_user_input_for_vm_creation { get { return false; } }
     public virtual bool user_data_for_vm_creation_available { get { return true; } }
diff --git a/src/win7-installer.vala b/src/win7-installer.vala
index de4cd35..fe798d5 100644
--- a/src/win7-installer.vala
+++ b/src/win7-installer.vala
@@ -7,12 +7,6 @@ using GVirConfig;
 private class Boxes.Win7Installer: WindowsInstaller {
     private static Regex arch_regex;
 
-    public override uint64 installed_size {
-        get {
-            return express_install? 7554351104 : 0;
-        }
-    }
-
     public override bool supports_virtio_disk {
         get {
             return (extra_iso != null);
diff --git a/src/winxp-installer.vala b/src/winxp-installer.vala
index 113e0fe..c87da42 100644
--- a/src/winxp-installer.vala
+++ b/src/winxp-installer.vala
@@ -19,12 +19,6 @@ private class Boxes.WinXPInstaller: WindowsInstaller {
         }
     }
 
-    public override uint64 installed_size {
-        get {
-            return express_install? 1169436672 : 0;
-        }
-    }
-
     private bool has_viostor_drivers;
 
     public override bool supports_virtio_disk {



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