Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Lachu:SystemServices
Lachu-PackageKit
0041-Correct-broken-messages.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0041-Correct-broken-messages.patch of Package Lachu-PackageKit
From 4169bac3f6a1d5a0e64e5390fc282071ebd7f6e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Lach?= <slawek@lach.art.pl> Date: Sat, 17 Jul 2021 12:21:41 +0200 Subject: [PATCH 41/46] - Correct broken messages --- helpers/dependency-solving-helper.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/helpers/dependency-solving-helper.cpp b/helpers/dependency-solving-helper.cpp index 26bf3bcdb..9fa96e3d7 100644 --- a/helpers/dependency-solving-helper.cpp +++ b/helpers/dependency-solving-helper.cpp @@ -561,6 +561,9 @@ int main(int argc, char **argv) if (!dbus_connection_send_with_reply(bus_connection, msg, &pending, -1)) { dbus_message_unref(msg); + + write(output, "ERR:\nNo reply\n", sizeof("ERR\n:No reply\n")); + puts("Error: No reply"); goto exit; } dbus_connection_flush(bus_connection); @@ -583,12 +586,12 @@ int main(int argc, char **argv) char *emsg; if (!dbus_message_get_args(reply, &error, DBUS_TYPE_STRING, &emsg, DBUS_TYPE_INVALID)) { - write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon")); + write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run")); puts("No error message provided"); goto exit; } - write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon")); + write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run")); puts(emsg); goto exit; } @@ -604,7 +607,7 @@ int main(int argc, char **argv) if (NULL == server || NULL == cookie || '\0' == server[0] || '\0' == cookie[0]) { - write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon")); + write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run")); goto exit; } @@ -639,7 +642,7 @@ int main(int argc, char **argv) if (NULL == reply) { puts("Error: No reply"); - write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon")); + write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run")); goto exit; } @@ -667,7 +670,7 @@ int main(int argc, char **argv) if (-1 == fd) { - write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon")); + write(output, "ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run", sizeof("ERR:\0No reply: Possible causes daemonUI as system-wide daemon or as session daemon not run")); goto exit; } -- 2.32.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor