Accepting request 266548 from Virtualization

1

OBS-URL: https://build.opensuse.org/request/show/266548
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvirt?expand=0&rev=168
This commit is contained in:
Dominique Leuenberger 2014-12-29 23:49:46 +00:00 committed by Git OBS Bridge
commit ce74241db6
2 changed files with 14 additions and 5 deletions

View File

@ -74,7 +74,7 @@ Index: libvirt-1.2.10/tools/libvirt-guests.sh.in
return 1 return 1
else else
return 0 return 0
@@ -83,6 +84,25 @@ run_virsh_c() { @@ -83,6 +84,26 @@ run_virsh_c() {
( export LC_ALL=C; run_virsh "$@" ) ( export LC_ALL=C; run_virsh "$@" )
} }
@ -91,7 +91,8 @@ Index: libvirt-1.2.10/tools/libvirt-guests.sh.in
+ run_virsh $uri list > /dev/null 2>&1 + run_virsh $uri list > /dev/null 2>&1
+ done + done
+ if [ $i -eq $rets ]; then + if [ $i -eq $rets ]; then
+ echo $"libvirt-guests unable to connect to URI: $uri" + eval_gettext "libvirt-guests unable to connect to URI: $uri"
+ echo
+ return 1 + return 1
+ fi + fi
+ return 0 + return 0
@ -118,13 +119,14 @@ Index: libvirt-1.2.10/tools/libvirt-guests.sh.in
return 1 return 1
fi fi
@@ -190,6 +210,12 @@ start() { @@ -190,6 +210,13 @@ start() {
test_connect "$uri" || continue test_connect "$uri" || continue
+ await_daemon_up $uri + await_daemon_up $uri
+ if [ $? -ne 0 ]; then + if [ $? -ne 0 ]; then
+ echo $"Ignoring guests on $uri URI, can't connect" + eval_gettext "Ignoring guests on $uri URI, can't connect"
+ echo
+ continue + continue
+ fi + fi
+ +

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Dec 27 22:08:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in libvirt-guests.sh script
- update patches:
+ libvirt-guests-init-script.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 15 09:48:02 UTC 2014 - cbosdonnat@suse.com Mon Dec 15 09:48:02 UTC 2014 - cbosdonnat@suse.com