[gnome-boxes/backports-gnome-42.1: 2/3] os-database: Exclude unreleased OSes from being promoted




commit 9e22eead3762a80287938babfbd0c3c50b3104ee
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon May 16 10:53:40 2022 +0200

    os-database: Exclude unreleased OSes from being promoted
    
    This is a regression introduced by !511.
    
    Fixes #796

 src/os-database.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/os-database.vala b/src/os-database.vala
index 7aeafb69..5d71d4f1 100644
--- a/src/os-database.vala
+++ b/src/os-database.vala
@@ -135,6 +135,10 @@ public async Osinfo.Os? get_latest_release_for_os_prefix (string os_id_prefix) {
             if (!os.id.has_prefix (os_id_prefix))
                 continue;
 
+            if (os.get_release_status () != ReleaseStatus.RELEASED &&
+                os.get_release_status () != ReleaseStatus.ROLLING)
+                continue;
+
             if (os.version in skipped_os_versions)
                 continue;
 


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