Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] r58479 - /trunk/dbus-server/yast2-dbus-server.spec.in
  • From: mvidner@xxxxxxxxxxxxxxxx
  • Date: Wed, 02 Sep 2009 15:30:30 -0000
  • Message-id: <E1Mirn4-0004aW-RX@xxxxxxxxxxxxxxxx>
Author: mvidner
Date: Wed Sep 2 17:30:30 2009
New Revision: 58479

URL: http://svn.opensuse.org/viewcvs/yast?rev=58479&view=rev
Log:
If the system bus is not running, it says
Failed to open connection to "system" message bus: Failed to connect to
socket /var/run/dbus/system_bus_socket: No such file or directory
which is a fair warning, but let's not fail the script.
(--amend!)

Modified:
trunk/dbus-server/yast2-dbus-server.spec.in

Modified: trunk/dbus-server/yast2-dbus-server.spec.in
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/dbus-server/yast2-dbus-server.spec.in?rev=58479&r1=58478&r2=58479&view=diff
==============================================================================
--- trunk/dbus-server/yast2-dbus-server.spec.in (original)
+++ trunk/dbus-server/yast2-dbus-server.spec.in Wed Sep 2 17:30:30 2009
@@ -44,10 +44,11 @@
# This is a workaround for dbus reloading too soon. (bnc#502719#c4).
# In oS 11.2 there exists rcdbus reload, so this is for a SLE backport.
# The /dev/null is a workaround for
http://bugs.freedesktop.org/show_bug.cgi?id=896#c23
-dbus-send --print-reply --system --dest=org.freedesktop.DBus /
org.freedesktop.DBus.ReloadConfig >/dev/null
+# But if there is nothing to reload, don't fail.
+dbus-send --print-reply --system --dest=org.freedesktop.DBus /
org.freedesktop.DBus.ReloadConfig >/dev/null || true

%postun -p /sbin/ldconfig
-dbus-send --print-reply --system --dest=org.freedesktop.DBus /
org.freedesktop.DBus.ReloadConfig >/dev/null
+dbus-send --print-reply --system --dest=org.freedesktop.DBus /
org.freedesktop.DBus.ReloadConfig >/dev/null || true

%files
%defattr(-,root,root)

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages