[gnome-boxes/offer-download-of-supported-archs-only: 3/3] os-database: Offer to download supported architectures-only



commit eafcbd27969d2d13c09f46f953e10c4fc5f3af25
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Apr 5 16:52:05 2018 +0200

    os-database: Offer to download supported architectures-only
    
    Until we are able to support everything! :)
    
    Fixes #190

 src/os-database.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/os-database.vala b/src/os-database.vala
index d636cae2..b9ecc527 100644
--- a/src/os-database.vala
+++ b/src/os-database.vala
@@ -125,8 +125,10 @@ public async Os get_os_by_id (string id) throws OSDatabaseError {
                     continue;
 
                 var eol = (os as Product).get_eol_date ();
-                if (eol == null || now.compare (eol) > 1)
+                if ((eol == null || now.compare (eol) > 1) &&
+                    (media.architecture in InstalledMedia.supported_architectures)) {
                     after_list.append (media);
+                }
             }
         }
 


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