[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 2/2] Add package arch to virt-inspector applications output



---
 inspector/virt-inspector.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/inspector/virt-inspector.c b/inspector/virt-inspector.c
index 8b06fa7..3ac14a7 100644
--- a/inspector/virt-inspector.c
+++ b/inspector/virt-inspector.c
@@ -747,6 +747,10 @@ output_applications (xmlTextWriterPtr xo, char *root)
       XMLERROR (-1,
         xmlTextWriterWriteElement (xo, BAD_CAST "release",
                                    BAD_CAST apps->val[i].app_release));
+    if (apps->val[i].app_arch && apps->val[i].app_arch[0])
+      XMLERROR (-1,
+        xmlTextWriterWriteElement (xo, BAD_CAST "arch",
+                                   BAD_CAST apps->val[i].app_arch));
     if (apps->val[i].app_install_path && apps->val[i].app_install_path[0])
       XMLERROR (-1,
         xmlTextWriterWriteElement (xo, BAD_CAST "install_path",
-- 
1.7.11.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]