modify version of youker-assistant is null
This commit is contained in:
parent
ceb7931aa3
commit
1970ab5ab5
35
0002-modify-version-of-youker-assistant-is-null.patch
Normal file
35
0002-modify-version-of-youker-assistant-is-null.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
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 << "-qa" << "|" << "grep" << "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
|
||||||
|
|
||||||
@ -1,12 +1,13 @@
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
Name: youker-assistant
|
Name: youker-assistant
|
||||||
Version: 3.0.3
|
Version: 3.0.3
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: youker-assistant
|
Summary: youker-assistant
|
||||||
License: GPL-2+ and GPL-3
|
License: GPL-2+ and GPL-3
|
||||||
URL: https://github.com/UbuntuKylin/youker-assistant
|
URL: https://github.com/UbuntuKylin/youker-assistant
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Patch01: 0001-Fix-the-problem-that-the-contents-of-youker-assistan.patch
|
Patch01: 0001-Fix-the-problem-that-the-contents-of-youker-assistan.patch
|
||||||
|
Patch02: 0002-modify-version-of-youker-assistant-is-null.patch
|
||||||
|
|
||||||
BuildRequires: python3-devel python3-lxml python3-dbus python3-pyxdg
|
BuildRequires: python3-devel python3-lxml python3-dbus python3-pyxdg
|
||||||
BuildRequires: qt5-qtcharts qt5-qtcharts-devel
|
BuildRequires: qt5-qtcharts qt5-qtcharts-devel
|
||||||
@ -39,6 +40,7 @@ user experience.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export PATH=%{_qt5_bindir}:$PATH
|
export PATH=%{_qt5_bindir}:$PATH
|
||||||
@ -67,6 +69,9 @@ popd
|
|||||||
%{_datadir}/polkit-1/actions/com.kylin.assistant.systemdaemon.policy
|
%{_datadir}/polkit-1/actions/com.kylin.assistant.systemdaemon.policy
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 30 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.3-4
|
||||||
|
- modify version of youker-assistant is null
|
||||||
|
|
||||||
* Mon May 30 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.3-3
|
* Mon May 30 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.3-3
|
||||||
- Fix the problem that the contents of youker-assistant are not displayed
|
- Fix the problem that the contents of youker-assistant are not displayed
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user