[gnome-boxes/exclude-unreleased-oses-from-recommended-section] os-database: Exclude unreleased OSes from being promoted
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/exclude-unreleased-oses-from-recommended-section] os-database: Exclude unreleased OSes from being promoted
- Date: Mon, 16 May 2022 08:56:56 +0000 (UTC)
commit 402bbd29b2fb14ff06d721cee9871394a2170696
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]