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

[Libguestfs] [PATCH 3/3] doc: Update docs to reflect new inspect-list-applications2 API



---
 examples/guestfs-recipes.pod | 60 ++++++++++++++++++++++++------------------
 inspector/virt-inspector.pod | 62 +++++++++++++++++++++++++-------------------
 2 files changed, 71 insertions(+), 51 deletions(-)

diff --git a/examples/guestfs-recipes.pod b/examples/guestfs-recipes.pod
index 2679b68..f957c39 100644
--- a/examples/guestfs-recipes.pod
+++ b/examples/guestfs-recipes.pod
@@ -328,7 +328,7 @@ Save the following to a file C<list-apps.sh>:
  set -e
  eval "$(guestfish --ro -d "$1" --i --listen)"
  root="$(guestfish --remote inspect-get-roots)"
- guestfish --remote inspect-list-applications "$root"
+ guestfish --remote inspect-list-applications2 "$root"
  guestfish --remote exit
 
 Make the file executable and then you can run it on any named
@@ -336,32 +336,42 @@ virtual machine:
 
  # list-apps.sh WinGuest
  [0] = {
-   app_name: Mozilla Firefox (3.6.12)
-   app_display_name: Mozilla Firefox (3.6.12)
-   app_epoch: 0
-   app_version: 3.6.12 (en-GB)
-   app_release:
-   app_install_path: C:\Program Files\Mozilla Firefox
-   app_trans_path:
-   app_publisher: Mozilla
-   app_url: http://www.mozilla.com/en-GB/
-   app_source_package:
-   app_summary:
-   app_description: Mozilla Firefox
+   app2_name: Mozilla Firefox (3.6.12)
+   app2_display_name: Mozilla Firefox (3.6.12)
+   app2_epoch: 0
+   app2_version: 3.6.12 (en-GB)
+   app2_release:
+   app2_arch:
+   app2_install_path: C:\Program Files\Mozilla Firefox
+   app2_trans_path:
+   app2_publisher: Mozilla
+   app2_url: http://www.mozilla.com/en-GB/
+   app2_source_package:
+   app2_summary:
+   app2_description: Mozilla Firefox
+   app2_spare1:
+   app2_spare2:
+   app2_spare3:
+   app2_spare4:
  }
  [1] = {
-   app_name: VLC media player
-   app_display_name: VLC media player 1.1.5
-   app_epoch: 0
-   app_version: 1.1.5
-   app_release:
-   app_install_path: C:\Program Files\VideoLAN\VLC
-   app_trans_path:
-   app_publisher: VideoLAN
-   app_url: http://www.videolan.org/
-   app_source_package:
-   app_summary:
-   app_description:
+   app2_name: VLC media player
+   app2_display_name: VLC media player 1.1.5
+   app2_epoch: 0
+   app2_version: 1.1.5
+   app2_release:
+   app2_arch:
+   app2_install_path: C:\Program Files\VideoLAN\VLC
+   app2_trans_path:
+   app2_publisher: VideoLAN
+   app2_url: http://www.videolan.org/
+   app2_source_package:
+   app2_summary:
+   app2_description:
+   app2_spare1:
+   app2_spare2:
+   app2_spare3:
+   app2_spare4:
  }
 
 If you want to run the script on disk images (instead of libvirt
diff --git a/inspector/virt-inspector.pod b/inspector/virt-inspector.pod
index 3157b52..9745507 100755
--- a/inspector/virt-inspector.pod
+++ b/inspector/virt-inspector.pod
@@ -440,36 +440,46 @@ To list applications, you have to first mount up the disks:
  ><fs> mount-ro /dev/vg_f15x32/lv_root /
  ><fs> mount-ro /dev/vda1 /boot
 
-and then call the inspect-list-applications API:
+and then call the inspect-list-applications2 API:
 
- ><fs> inspect-list-applications /dev/vg_f15x32/lv_root | head -28
+ ><fs> inspect-list-applications2 /dev/vg_f15x32/lv_root | head -38
  [0] = {
-   app_name: ConsoleKit
-   app_display_name:
-   app_epoch: 0
-   app_version: 0.4.5
-   app_release: 1.fc15
-   app_install_path:
-   app_trans_path:
-   app_publisher:
-   app_url:
-   app_source_package:
-   app_summary:
-   app_description:
+   app2_name: ConsoleKit
+   app2_display_name:
+   app2_epoch: 0
+   app2_version: 0.4.5
+   app2_release: 1.fc15
+   app2_arch: x86_64
+   app2_install_path:
+   app2_trans_path:
+   app2_publisher:
+   app2_url:
+   app2_source_package:
+   app2_summary:
+   app2_description:
+   app2_spare1:
+   app2_spare2:
+   app2_spare3:
+   app2_spare4:
  }
  [1] = {
-   app_name: ConsoleKit-libs
-   app_display_name:
-   app_epoch: 0
-   app_version: 0.4.5
-   app_release: 1.fc15
-   app_install_path:
-   app_trans_path:
-   app_publisher:
-   app_url:
-   app_source_package:
-   app_summary:
-   app_description:
+   app2_name: ConsoleKit-libs
+   app2_display_name:
+   app2_epoch: 0
+   app2_version: 0.4.5
+   app2_release: 1.fc15
+   app2_arch: x86_64
+   app2_install_path:
+   app2_trans_path:
+   app2_publisher:
+   app2_url:
+   app2_source_package:
+   app2_summary:
+   app2_description:
+   app2_spare1:
+   app2_spare2:
+   app2_spare3:
+   app2_spare4:
  }
 
 To display an icon for the guest, note that filesystems must also be
-- 
1.7.11.7


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