[virt-tools-list] [virt-viewer] nsis: Only search for libvirt dir when built with libvirt support

Fabiano Fidêncio fidencio at redhat.com
Mon Apr 25 12:26:40 UTC 2016


Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 data/virt-viewer.nsis.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/data/virt-viewer.nsis.in b/data/virt-viewer.nsis.in
index 1853a0f..f032897 100755
--- a/data/virt-viewer.nsis.in
+++ b/data/virt-viewer.nsis.in
@@ -177,7 +177,9 @@ Section "VirtViewer"
   SetOutPath "$INSTDIR\etc"
   File /r "@prefix@/etc/fonts"
   File /r "@prefix@/etc/gtk-3.0"
-  File /r "@prefix@/etc/libvirt"
+  !if ${HaveLibvirt} == True
+    File /r "@prefix@/etc/libvirt"
+  !endif
 
   CreateDirectory "$INSTDIR\etc\gtk-3.0"
 
-- 
2.7.3




More information about the virt-tools-list mailing list