Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package deepin-polkit-agent for
openSUSE:Factory checked in at 2022-04-22 21:54:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/deepin-polkit-agent (Old)
and /work/SRC/openSUSE:Factory/.deepin-polkit-agent.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "deepin-polkit-agent"
Fri Apr 22 21:54:09 2022 rev:4 rq:971840 version:5.5.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/deepin-polkit-agent/deepin-polkit-agent.changes
2022-02-10 23:12:42.556304526 +0100
+++
/work/SRC/openSUSE:Factory/.deepin-polkit-agent.new.1538/deepin-polkit-agent.changes
2022-04-22 21:55:02.778860149 +0200
@@ -1,0 +2,17 @@
+Wed Apr 6 07:14:43 UTC 2022 - Hillwood Yang <[email protected]>
+
+- Update version to 5.5.7
+ * Migrate qmake to cmake
+ * Update translations
+ * Fix bugs
+- Add polkit-qt5.patch, use upstream's api instead deepin's patch
+- Drop fix-sudo-issue.patch, merged by upstream
+
+-------------------------------------------------------------------
+Thu Feb 10 12:26:34 UTC 2022 - Hillwood Yang <[email protected]>
+
+- Update version to 5.5.3
+ * Disable copy and cut options of DPasswordEdit
+ * Fix bugs
+
+-------------------------------------------------------------------
Old:
----
dde-polkit-agent-5.4.14.tar.gz
fix-sudo-issue.patch
New:
----
dde-polkit-agent-5.5.7.tar.gz
polkit-qt5.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ deepin-polkit-agent.spec ++++++
--- /var/tmp/diff_new_pack.pFXof7/_old 2022-04-22 21:55:03.346860796 +0200
+++ /var/tmp/diff_new_pack.pFXof7/_new 2022-04-22 21:55:03.346860796 +0200
@@ -19,14 +19,15 @@
%define _name dde-polkit-agent
Name: deepin-polkit-agent
-Version: 5.4.14
+Version: 5.5.7
Release: 0
Summary: Deepin Polkit Agent
License: GPL-3.0-or-later
Group: System/GUI/Other
URL: https://github.com/linuxdeepin/dde-polkit-agent
Source0:
https://github.com/linuxdeepin/dde-polkit-agent/archive/%{version}/%{_name}-%{version}.tar.gz
-Patch0: fix-sudo-issue.patch
+#
https://github.com/deepincn/repo/blob/master/deepincn/git/deepin-polkit-agent-git/fix.patch
+Patch0: polkit-qt5.patch
BuildRequires: dtkcore
BuildRequires: libqt5-linguist
BuildRequires: pkgconfig(Qt5Concurrent)
@@ -59,13 +60,14 @@
sed -i 's|lrelease|lrelease-qt5|' translate_generation.sh
sed -i 's/bool is_deepin = true/bool is_deepin = false/' policykitlistener.cpp
sed -i '/setCancel/d' policykitlistener.cpp
+sed -i 's/qdbusxml2cpp/qdbusxml2cpp-qt5/g' CMakeLists.txt
%build
-%qmake5 PREFIX=%{_prefix}
-%make_build
+%cmake
+%cmake_build
%install
-%qmake5_install
+%cmake_install
%files
%defattr(-,root,root,-)
++++++ dde-polkit-agent-5.4.14.tar.gz -> dde-polkit-agent-5.5.7.tar.gz ++++++
++++ 4576 lines of diff (skipped)
++++++ polkit-qt5.patch ++++++
--- test/policykitlistener.cpp 2022-02-23 21:39:00.000000000 +0800
+++ dde-polkit-agent/policykitlistener.cpp 2022-02-23 21:36:43.000000000
+0800
@@ -203,7 +203,7 @@ void PolicyKitListener::completed(bool g
m_showInfoSuccess = false;
if (m_exAuth) {
- m_session.data()->authCtrl(AUTH_CLOSE, -1);
+ //m_session.data()->authCtrl(AUTH_CLOSE, -1);
}
finishObtainPrivilege();
}
@@ -243,7 +243,7 @@ void PolicyKitListener::exAuthInfo(bool
m_isMfa = isMfa;
if (!isMfa) {
- m_session.data()->authCtrl(AUTH_START, -1);
+ //m_session.data()->authCtrl(AUTH_START, -1);
}
}
@@ -271,7 +271,7 @@ void PolicyKitListener::createSessionFor
}
// We will create new session only when some user is selected
if (m_selectedUser.isValid()) {
- m_session = new Session(m_selectedUser, m_cookie, m_result,
&m_details);
+ m_session = new Session(m_selectedUser, m_cookie, m_result);
connect(m_session.data(), &Session::request, this,
&PolicyKitListener::request);
@@ -281,10 +281,10 @@ void PolicyKitListener::createSessionFor
&PolicyKitListener::showError);
connect(m_session.data(), &Session::showInfo, this,
&PolicyKitListener::showInfo);
- connect(m_session.data(), &Session::exAuthStatus, this,
- &PolicyKitListener::exAuthStatus);
- connect(m_session.data(), &Session::exAuthInfo, this,
- &PolicyKitListener::exAuthInfo);
+// connect(m_session.data(), &Session::exAuthStatus, this,
+// &PolicyKitListener::exAuthStatus);
+// connect(m_session.data(), &Session::exAuthInfo, this,
+// &PolicyKitListener::exAuthInfo);
m_session->initiate();
}
@@ -294,14 +294,14 @@ void PolicyKitListener::fillResult()
{
if (!m_session.isNull()) {
if (m_wasCancelled) {
- m_session.data()->result()->setCancel("aciton cancel");
+ m_session.data()->result()->setError("aciton cancel");
} else if (!m_gainedAuthorization) {
m_session.data()->result()->setError("password error");
}
m_session.data()->result()->setCompleted();
} else {
if (m_wasCancelled) {
- m_result->setCancel("action cancel");
+ m_result->setError("action cancel");
} else if (!m_gainedAuthorization) {
m_result->setError("password error");
}