summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generator/generator_actions.ml3
-rw-r--r--src/guestfs-internal.h3
-rw-r--r--src/inspect.c1
-rw-r--r--src/inspect_apps.c1
4 files changed, 6 insertions, 2 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 60fca9b7..02eb2eff 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -1173,7 +1173,8 @@ This returns the string C<unknown> if we could not determine the
package format I<or> if the operating system does not have
a real packaging system (eg. Windows).
-Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.
+Possible strings include:
+C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, C<pkgsrc>.
Future versions of libguestfs may return other strings.
Please read L<guestfs(3)/INSPECTION> for more details.");
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 */;