[gnome-boxes/gnome-3-14] unattended-file: Add a forgotten 'else'



commit 9edfbdd4f7792631b1684fc7153ef7b3060dd8a3
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Jan 7 16:39:50 2015 +0000

    unattended-file: Add a forgotten 'else'
    
    In commit ae2bbc81, I was supposed to add an 'else if' but I ended-up
    creating a new 'if' block by forgetting to type 'else'. This made Boxes
    always choose floppy injection method if script claimed to support it
    and that broke express installation for scripts that pretend to support
    floppy method but actually don't (Fedora and RHEL).

 src/unattended-file.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/unattended-file.vala b/src/unattended-file.vala
index 94f4309..02aa92e 100644
--- a/src/unattended-file.vala
+++ b/src/unattended-file.vala
@@ -123,7 +123,7 @@ private class Boxes.UnattendedScriptFile : GLib.Object, Boxes.UnattendedFile {
         var injection_methods = script.get_injection_methods ();
         if (InstallScriptInjectionMethod.DISK in injection_methods)
             injection_method = InstallScriptInjectionMethod.DISK;
-        if (InstallScriptInjectionMethod.FLOPPY in injection_methods)
+        else if (InstallScriptInjectionMethod.FLOPPY in injection_methods)
             injection_method = InstallScriptInjectionMethod.FLOPPY;
         else if (InstallScriptInjectionMethod.INITRD in injection_methods)
             injection_method = InstallScriptInjectionMethod.INITRD;


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