[libguestfs] When testing if network is available, dump ip addr/route to help with debugging.

Richard W.M. Jones rjones at fedoraproject.org
Thu Oct 2 19:53:49 UTC 2014


commit 95151f84a2e7d0c11a2ec9907aa318097b0f6ec5
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Oct 2 20:53:11 2014 +0100

    When testing if network is available, dump ip addr/route to help with debugging.

 libguestfs.spec |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libguestfs.spec b/libguestfs.spec
index f4efb15..c1fb4a1 100644
--- a/libguestfs.spec
+++ b/libguestfs.spec
@@ -741,6 +741,8 @@ sed 's/@VERSION@/%{version}/g' < %{SOURCE4} > README
 
 %build
 # Test if network is available.
+ip addr list ||:
+ip route list ||:
 if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
   extra=
 else


More information about the scm-commits mailing list