Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c949c731c1
!20 fix version showing "none"
From: @hou-hongxun 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2024-05-08 06:17:36 +00:00
侯红勋
94f841782d fix version showing "none" on about dialog
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
2024-04-17 15:02:31 +08:00
openeuler-ci-bot
91863bd482
!19 [sync] PR-17: update patch info
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-06-08 01:03:37 +00:00
peijiankang
2fcd845334 update patch info
(cherry picked from commit 78ef05073abbb4b68d92ef09f00963db8db65ccc)
2023-06-07 20:15:19 +08:00
openeuler-ci-bot
6d6ca5abcd
!14 update upstream version to 3.10.3
From: @peijiankang 
Reviewed-by: @hua_yadong 
Signed-off-by: @hua_yadong
2023-05-09 06:07:32 +00:00
peijiankang
2629d85dff update upstream version to 3.10.3 2023-05-06 15:02:21 +08:00
openeuler-ci-bot
b516f26bd8
!12 fix version of kylin-burner
From: @peijiankang 
Reviewed-by: @tanyulong2021 
Signed-off-by: @tanyulong2021
2023-03-22 07:58:18 +00:00
peijiankang
e1f18f089e fix version of kylin-burner 2023-03-22 14:01:36 +08:00
openeuler-ci-bot
8e4c19f31f
!10 Repair the user guide does not work
From: @peijiankang 
Reviewed-by: @hua_yadong 
Signed-off-by: @hua_yadong
2023-03-03 09:51:47 +00:00
peijiankang
c31afe6c29 Repair the user guide does not work 2023-03-03 15:56:58 +08:00
7 changed files with 149 additions and 3 deletions

View File

@ -11,7 +11,7 @@ diff --git a/src/main.cpp b/src/main.cpp
index 29b3615..64570e2 100644 index 29b3615..64570e2 100644
--- a/src/main.cpp --- a/src/main.cpp
+++ b/src/main.cpp +++ b/src/main.cpp
@@ -32,7 +32,9 @@ int main(int argc, char *argv[]) @@ -55,7 +55,9 @@ int main(int argc, char *argv[])
QApplication a(argc, argv); QApplication a(argc, argv);

View File

@ -0,0 +1,78 @@
From c97c831b5cdc5008436733ffcca8946e666c03c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= <houhongxun@kylinos.cn>
Date: Wed, 17 Apr 2024 14:40:24 +0800
Subject: [PATCH] kylin-burner: fix version showing "none" on about dialog
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
---
src/view/kybaboutdialog.cpp | 38 +++++++++++++------------------------
1 file changed, 13 insertions(+), 25 deletions(-)
diff --git a/src/view/kybaboutdialog.cpp b/src/view/kybaboutdialog.cpp
index b8c4201..9e20b7e 100644
--- a/src/view/kybaboutdialog.cpp
+++ b/src/view/kybaboutdialog.cpp
@@ -31,12 +31,12 @@
#include <QStyle>
#include <QDesktopServices>
#include <QScrollBar>
+#include <QRegularExpression>
+#include <QProcess>
KYBAboutDialog *KYBAboutDialog::m_oInstance = nullptr;
QMutex KYBAboutDialog::m_oMutex;
-#define VERSION "3.10.3"
-
#include <QDebug>
KYBAboutDialog::KYBAboutDialog(QWidget *parent) :
@@ -211,31 +211,19 @@ KYBAboutDialog::~KYBAboutDialog()
QString KYBAboutDialog::getCurrentVersion()
{
- FILE *pp = NULL;
- char *line = NULL;
- size_t len = 0;
- ssize_t read;
- char *q = NULL;
- QString version = tr("none");
-
- pp = popen("dpkg -l kylin-burner", "r");
- if(NULL == pp)
- return version;
+ QProcess v_p;
+ v_p.start("rpm", QStringList() << "-q" << "kylin-burner");
- while((read = getline(&line, &len, pp)) != -1){
- q = strrchr(line, '\n');
- *q = '\0';
+ if (!v_p.waitForFinished())
+ return "none";
- QString content = line;
- QStringList list = content.split(" ");
+ QByteArray ba = v_p.readAllStandardOutput();
- list.removeAll("");
-
- if (list.size() >= 3)
- version = list.at(2);
- }
+ QRegularExpression qe("-([^-]+)-[^-]+\n$");
- free(line);
- pclose(pp);
- return version;
+ QRegularExpressionMatch qem = qe.match(ba);
+ if (qem.hasMatch()) {
+ return qem.captured(1);
+ }
+ return "none";
}
--
2.43.0

View File

@ -0,0 +1,25 @@
From 22611af8c0394ef4b1b057c5d683c30c16ae5777 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Fri, 3 Mar 2023 15:56:13 +0800
Subject: [PATCH] Repair the user guide does not work
---
src/model/logicmain.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/model/logicmain.cpp b/src/model/logicmain.cpp
index 16a6f5a..7931ae2 100644
--- a/src/model/logicmain.cpp
+++ b/src/model/logicmain.cpp
@@ -76,7 +76,7 @@ LogicMain::LogicMain(QObject *parent) :
pwd = getpwuid(getuid());
msg = QDBusMessage::createMethodCall( QString("com.kylinUserGuide.hotel_%1")
- .arg(pwd->pw_gid),"/", "com.guide.hotel",
+ .arg(pwd->pw_uid),"/", "com.guide.hotel",
"showGuide");
f.setFile("/usr/share/kylin-user-guide/data/guide/kylin-burner");
msg << "kylin-burner";
--
2.33.0

View File

@ -0,0 +1,25 @@
From b1e6775378c19aaa6272cf739b57a2ea9ad88d11 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Wed, 22 Mar 2023 13:55:00 +0800
Subject: [PATCH] fix version of kylin-burner
---
src/view/kybaboutdialog.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/view/kybaboutdialog.cpp b/src/view/kybaboutdialog.cpp
index a2077a3..e319bf7 100644
--- a/src/view/kybaboutdialog.cpp
+++ b/src/view/kybaboutdialog.cpp
@@ -35,7 +35,7 @@
KYBAboutDialog *KYBAboutDialog::m_oInstance = nullptr;
QMutex KYBAboutDialog::m_oMutex;
-#define VERSION "3.2.0"
+#define VERSION "3.10.3"
#include <QDebug>
--
2.33.0

Binary file not shown.

BIN
kylin-burner-3.10.3.tar.gz Normal file

Binary file not shown.

View File

@ -1,11 +1,14 @@
Name: kylin-burner Name: kylin-burner
Version: 3.10.2 Version: 3.10.3
Release: 4 Release: 2
Summary: CD/DVD burning application for UKUI. Summary: CD/DVD burning application for UKUI.
License: GPL-3.0-or-later License: GPL-3.0-or-later
URL: https://github.com/UbuntuKylin/kylin-burner URL: https://github.com/UbuntuKylin/kylin-burner
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Patch01: 0001-Fix-the-problem-of-scrambled-burner.patch Patch01: 0001-Fix-the-problem-of-scrambled-burner.patch
Patch02: 0002-Repair-the-user-guide-does-not-work.patch
Patch03: 0003-fix-version-of-kylin-burner.patch
Patch04: 0001-kylin-burner-fix-version-showing-none-on-about-dialo.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: qt5-qtx11extras-devel BuildRequires: qt5-qtx11extras-devel
@ -28,6 +31,9 @@ CD/DVD burning application for UKUI.
%prep %prep
%setup -q %setup -q
%patch01 -p1 %patch01 -p1
%patch02 -p1
%patch03 -p1
%patch04 -p1
%build %build
mkdir cmake-build mkdir cmake-build
@ -48,6 +54,18 @@ popd
%{_datadir}/locale/zh_CN/LC_MESSAGES/kylin-burner.mo %{_datadir}/locale/zh_CN/LC_MESSAGES/kylin-burner.mo
%changelog %changelog
* Wed Apr 17 2024 houhongxun <houhongxun@kylinos.cn> - 3.10.3-2
- fix version showing "none" on about dialog
* Mon May 08 2023 peijiankang <peijiankang@kylinos.cn> - 3.10.3-1
- update upstream version to 3.10.3
* Wed Mar 22 2023 peijiankang <peijiankang@kylinos.cn> - 3.10.2-6
- fix version of kylin-burner
* Fri Mar 03 2023 peijiankang <peijiankang@kylinos.cn> - 3.10.2-5
- Repair the user guide does not work
* Fri Aug 19 2022 peijiankang <peijiankang@kylinos.cn> - 3.10.2-4 * Fri Aug 19 2022 peijiankang <peijiankang@kylinos.cn> - 3.10.2-4
- add build debuginfo and debugsource - add build debuginfo and debugsource