[gnome-boxes/offer-rolling-releases-for-download: 2/2] os-database: Include rolling releases as Downloadable



commit 18b00177b926fe470109991042ee6066ea1c0be5
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Apr 24 10:24:28 2020 +0200

    os-database: Include rolling releases as Downloadable
    
    We filter off UNRELEASED and EOL OSes from our "Download an OS"
    page, but that was also excluding rolling release OSes such as
    Manjaro.
    
    Fixes #526

 src/os-database.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/os-database.vala b/src/os-database.vala
index c6f202ec..d8bf82fe 100644
--- a/src/os-database.vala
+++ b/src/os-database.vala
@@ -115,7 +115,8 @@ public async Os get_os_by_id (string id) throws OSDatabaseError {
         foreach (var entity in db.get_os_list ().get_elements ()) {
             var os = entity as Os;
 
-            if (os.get_release_status () != ReleaseStatus.RELEASED)
+            if (os.get_release_status () != ReleaseStatus.RELEASED &&
+                os.get_release_status () != ReleaseStatus.ROLLING)
                 continue;
 
             foreach (var media_entity in os.get_media_list ().get_elements ()) {


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