diff options
author | Michael Scherer <misc@zarb.org> | 2011-10-14 01:05:07 +0200 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-10-14 10:27:48 +0100 |
commit | 8f6eed00da59614184090e56edef6884f187b436 (patch) | |
tree | 0565ca488b0ee42cde815e85796150dba5be3a4b /src | |
parent | 05a8359c7cf98fdcf75628299dd3e64401f07ee4 (diff) | |
download | libguestfs-8f6eed00da59614184090e56edef6884f187b436.tar.gz libguestfs-8f6eed00da59614184090e56edef6884f187b436.tar.xz libguestfs-8f6eed00da59614184090e56edef6884f187b436.zip |
Add support for pkgsrc, default NetBSD package manager.
For now, only detect the tool, but support from reading
installed package could be added later ( may require either
a package of pkgsrc, or a smaller tool to read the db ).
Diffstat (limited to 'src')
-rw-r--r-- | src/guestfs-internal.h | 3 | ||||
-rw-r--r-- | src/inspect.c | 1 | ||||
-rw-r--r-- | src/inspect_apps.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h index cee3048a..eacf5021 100644 --- a/src/guestfs-internal.h +++ b/src/guestfs-internal.h @@ -284,7 +284,8 @@ enum inspect_os_package_format { OS_PACKAGE_FORMAT_DEB, OS_PACKAGE_FORMAT_PACMAN, OS_PACKAGE_FORMAT_EBUILD, - OS_PACKAGE_FORMAT_PISI + OS_PACKAGE_FORMAT_PISI, + OS_PACKAGE_FORMAT_PKGSRC, }; enum inspect_os_package_management { diff --git a/src/inspect.c b/src/inspect.c index 62cbc855..14327357 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -456,6 +456,7 @@ guestfs__inspect_get_package_format (guestfs_h *g, const char *root) case OS_PACKAGE_FORMAT_PACMAN: ret = safe_strdup (g, "pacman"); break; case OS_PACKAGE_FORMAT_EBUILD: ret = safe_strdup (g, "ebuild"); break; case OS_PACKAGE_FORMAT_PISI: ret = safe_strdup (g, "pisi"); break; + case OS_PACKAGE_FORMAT_PKGSRC: ret = safe_strdup (g, "pkgsrc"); break; case OS_PACKAGE_FORMAT_UNKNOWN: default: ret = safe_strdup (g, "unknown"); diff --git a/src/inspect_apps.c b/src/inspect_apps.c index ba272476..a77da735 100644 --- a/src/inspect_apps.c +++ b/src/inspect_apps.c @@ -90,6 +90,7 @@ guestfs__inspect_list_applications (guestfs_h *g, const char *root) case OS_PACKAGE_FORMAT_PACMAN: case OS_PACKAGE_FORMAT_EBUILD: case OS_PACKAGE_FORMAT_PISI: + case OS_PACKAGE_FORMAT_PKGSRC: case OS_PACKAGE_FORMAT_UNKNOWN: default: /* nothing - keep GCC happy */; |