[gnome-boxes/filter-off-unsupported-arches: 2/2] os-database: Only show supported architectures in "Download an OS"



commit 7536a62b0a1dba58f2d7747606a6622328c2b235
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Aug 14 13:26:44 2019 +0200

    os-database: Only show supported architectures in "Download an OS"
    
    Fixes #387

 src/os-database.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/os-database.vala b/src/os-database.vala
index 3e5ffb57..c6f202ec 100644
--- a/src/os-database.vala
+++ b/src/os-database.vala
@@ -124,6 +124,9 @@ public async Os get_os_by_id (string id) throws OSDatabaseError {
                 if (media.url == null)
                     continue;
 
+                if (!(media.architecture in InstalledMedia.supported_architectures))
+                    continue;
+
                 var eol = (os as Product).get_eol_date ();
                 if (eol == null || now.compare (eol) < 1)
                     after_list.append (media);


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