[gnome-boxes/dont-hardcode-rhel-version] wizard-source: Don't hardcode the RHEL version check



commit f745fbeb3f9b7180e0a1038d24a518d23126ecc7
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Oct 24 13:04:23 2018 +0200

    wizard-source: Don't hardcode the RHEL version check
    
    Makes the free RHEL feature keep working with newly released
    version of Red Hat Enterprise Linux.
    
    Fixes #268

 src/wizard-source.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index 7accb5dc..889ce886 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -582,7 +582,7 @@ private void on_media_selected (InstallerMedia media) {
     private void on_download_an_os_button_clicked () {
         window.wizard_window.show_downloads_page (media_manager.os_db, (entry) => {
             // Handle custom downloads
-            if (entry.os.id == "http://redhat.com/rhel/7.4";) {
+            if (entry.os.id.has_prefix ("http://redhat.com/rhel/";)) {
                 on_install_rhel_button_clicked ();
 
                 return;


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