[gnome-boxes] unattended-installer: Take needs-internet into account
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] unattended-installer: Take needs-internet into account
- Date: Fri, 15 Aug 2014 18:40:57 +0000 (UTC)
commit a52d29bddfd8ecbb5b01eeeb26ec4ae81d2edcc9
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date: Fri Aug 15 18:37:45 2014 +0200
unattended-installer: Take needs-internet into account
The needs-internet param from Osinfo.InstallScript signals that an
express installation needs an internet connection in order to run
without user intervention.
https://bugzilla.gnome.org/show_bug.cgi?id=734675
Conflicts:
src/unattended-installer.vala
src/unattended-installer.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 390b542..2b41d2b 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -87,10 +87,12 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
unattended_files = new GLib.List<UnattendedFile> ();
secondary_unattended_files = new GLib.List<UnattendedFile> ();
+ var needs_internet = false;
foreach (var s in scripts.get_elements ()) {
var script = s as InstallScript;
var filename = script.get_expected_filename ();
add_unattended_file (new UnattendedScriptFile (this, script, filename));
+ needs_internet = needs_internet || script.get_needs_internet ();
}
additional_devices = new Osinfo.DeviceList ();
@@ -100,7 +102,7 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
kbd = lang;
product_key_format = get_product_key_format ();
- setup_box = new UnattendedSetupBox (os_media.live, product_key_format, false, label);
+ setup_box = new UnattendedSetupBox (os_media.live, product_key_format, needs_internet, label);
setup_box.notify["ready-to-create"].connect (() => {
notify_property ("ready-to-create");
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]