From 0f4ad5d18fd250a091b9be2aa14cf5f7c5a56e16 Mon Sep 17 00:00:00 2001
From: Ikey Doherty <ikey@serpentos.com>
Date: Fri, 24 May 2024 00:21:30 +0100
Subject: [PATCH] blsctl: Prevent win95 type version issues.

Signed-off-by: Ikey Doherty <ikey@serpentos.com>
---
 blsctl/src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blsctl/src/main.rs b/blsctl/src/main.rs
index 7fcc3e7..6335605 100644
--- a/blsctl/src/main.rs
+++ b/blsctl/src/main.rs
@@ -111,7 +111,7 @@ fn query_schema(config: &Configuration) -> color_eyre::Result<RootSchema> {
 
     match os_rel.id.as_str() {
         "solus" => {
-            if os_rel.version.name.is_some_and(|v| v.starts_with('4')) {
+            if os_rel.version.name.is_some_and(|v| v.starts_with("4.")) {
                 log::trace!("Legacy schema due to Solus 4 installation");
                 Ok(RootSchema::Legacy("com.solus-project"))
             } else {