From fc98b89e8acc49ab32abe288e794dbb77659f778 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Fri, 9 Dec 2022 15:20:28 +0800
Subject: [PATCH] modify version-info error

---
 plugins/system/about/about.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/plugins/system/about/about.cpp b/plugins/system/about/about.cpp
index 688395e..e63591c 100644
--- a/plugins/system/about/about.cpp
+++ b/plugins/system/about/about.cpp
@@ -795,7 +795,14 @@ void About::setupVersionCompenent()
                     version = rx.cap(1);
                 }
             }
-        }
+	    else if(str.contains("VERSION=")) {
+		QRegExp rx("VERSION=\"(.*)\"$");
+		int pos = rx.indexIn(str);
+		if (pos > -1) {
+		    version = rx.cap(1);
+		}
+	    }
+	}
     }
 
     if (!version.isEmpty()) {
-- 
2.33.0

