Projects
home:Eustace:branches:Eulaceura:Factory
youker-assistant
_service:obs_scm:0002-modify-version-of-youker-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0002-modify-version-of-youker-assistant-is-null.patch of Package youker-assistant
From a755f802c3b65ac7b88c129ca64b112a7225b8b7 Mon Sep 17 00:00:00 2001 From: peijiankang <peijiankang@kylinos.cn> Date: Mon, 30 May 2022 10:57:43 +0800 Subject: [PATCH] modify version of youker-assistant is null --- commonfunc/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commonfunc/utils.cpp b/commonfunc/utils.cpp index 911f56b..21061a4 100644 --- a/commonfunc/utils.cpp +++ b/commonfunc/utils.cpp @@ -64,15 +64,15 @@ QString getKAVersion() QString versionText; QProcess proc; QStringList options; - options << "-l" << "|" << "grep" << "youker-assistant"; - proc.start("dpkg", options); + options << "-q" << "youker-assistant"; + proc.start("rpm", options); proc.waitForFinished(); QString dpkgInfo = proc.readAll(); QStringList infoList = dpkgInfo.split("\n"); for (int n = 0; n < infoList.size(); n++) { QString strInfoLine = infoList[n]; if (strInfoLine.contains("youker-assistant")) { - QStringList lineInfoList = strInfoLine.split(QRegExp("[\\s]+")); + QStringList lineInfoList = strInfoLine.split(QRegExp("-")); if (lineInfoList.size() >= 3) { versionText = lineInfoList[2]; } -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2