summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-04-14 17:53:48 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-04-14 18:19:42 +0100
commitd95874db3dc6c415061b86275d03770b4f28ffbb (patch)
tree07df251ecf41868dea4e897ba26ea55b0a1f251a /src/guestfs-internal.h
parenta986e8dadb0c70634f6d1d89dd3e7bb5d9af3078 (diff)
downloadlibguestfs-d95874db3dc6c415061b86275d03770b4f28ffbb.tar.gz
libguestfs-d95874db3dc6c415061b86275d03770b4f28ffbb.tar.xz
libguestfs-d95874db3dc6c415061b86275d03770b4f28ffbb.zip
inspect: Get version and release of RPM packages.
This commit downloads the Packages RPM database allowing us to find other details about installed RPM packages (via inspect-list-applications). This adds version and release. Epoch cannot yet be found. This commit also updates the Fedora example image so that it contains a dummy RPM Packages database with some data.
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index 1730f688..c6d7c871 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -82,8 +82,12 @@
*/
#define MAX_REGISTRY_SIZE (100 * 1000 * 1000)
-/* Maximum RPM or dpkg database we will download to /tmp. */
-#define MAX_PKG_DB_SIZE (10 * 1000 * 1000)
+/* Maximum RPM or dpkg database we will download to /tmp. RPM
+ * 'Packages' database can get very large: 70 MB is roughly the
+ * standard size for a new Fedora install, and after lots of package
+ * installation/removal I have seen well over 100 MB databases.
+ */
+#define MAX_PKG_DB_SIZE (300 * 1000 * 1000)
/* Network configuration of the appliance. Note these addresses are
* only meaningful within the context of the running appliance. QEMU