richardphibel / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone
2c1f71
From 44d75a36d7c8a933119e5b63f180a8c23715ec51 Mon Sep 17 00:00:00 2001
2c1f71
From: Jaroslav Rohel <jrohel@redhat.com>
2c1f71
Date: Mon, 28 Mar 2022 07:51:45 +0200
2c1f71
Subject: [PATCH] context: Fix doc dnf_context_install/remove/update/distrosync
2c1f71
2c1f71
Functions do not support groups - only packages are supported.
2c1f71
2c1f71
The `dnf_context_remove` function marks all matching packages for removal
2c1f71
- not just the oldest one.
2c1f71
---
2c1f71
 libdnf/dnf-context.cpp | 10 +++++-----
2c1f71
 1 file changed, 5 insertions(+), 5 deletions(-)
2c1f71
2c1f71
diff --git a/libdnf/dnf-context.cpp b/libdnf/dnf-context.cpp
2c1f71
index 4b055f03..fe005430 100644
2c1f71
--- a/libdnf/dnf-context.cpp
2c1f71
+++ b/libdnf/dnf-context.cpp
2c1f71
@@ -2379,7 +2379,7 @@ dnf_context_run(DnfContext *context, GCancellable *cancellable, GError **error)
2c1f71
 /**
2c1f71
  * dnf_context_install:
2c1f71
  * @context: a #DnfContext instance.
2c1f71
- * @name: A package or group name, e.g. "firefox" or "@gnome-desktop"
2c1f71
+ * @name: A package specification (NEVRA forms, provide, file provide, globs supported) e.g. "firefox"
2c1f71
  * @error: A #GError or %NULL
2c1f71
  *
2c1f71
  * Finds a remote package and marks it to be installed.
2c1f71
@@ -2422,12 +2422,12 @@ dnf_context_install(DnfContext *context, const gchar *name, GError **error) try
2c1f71
 /**
2c1f71
  * dnf_context_remove:
2c1f71
  * @context: a #DnfContext instance.
2c1f71
- * @name: A package or group name, e.g. "firefox" or "@gnome-desktop"
2c1f71
+ * @name: A package specification (NEVRA forms, provide, file provide, globs supported) e.g. "firefox"
2c1f71
  * @error: A #GError or %NULL
2c1f71
  *
2c1f71
  * Finds an installed package and marks it to be removed.
2c1f71
  *
2c1f71
- * If multiple packages are available then only the oldest package is removed.
2c1f71
+ * If multiple packages are available, all of them will be removed.
2c1f71
  *
2c1f71
  * Returns: %TRUE for success, %FALSE otherwise
2c1f71
  *
2c1f71
@@ -2470,7 +2470,7 @@ dnf_context_remove(DnfContext *context, const gchar *name, GError **error) try
2c1f71
 /**
2c1f71
  * dnf_context_update:
2c1f71
  * @context: a #DnfContext instance.
2c1f71
- * @name: A package or group name, e.g. "firefox" or "@gnome-desktop"
2c1f71
+ * @name: A package specification (NEVRA forms, provide, file provide, globs supported) e.g. "firefox"
2c1f71
  * @error: A #GError or %NULL
2c1f71
  *
2c1f71
  * Finds an installed and remote package and marks it to be updated.
2c1f71
@@ -2548,7 +2548,7 @@ dnf_context_update_all (DnfContext  *context,
2c1f71
 /**
2c1f71
  * dnf_context_distrosync:
2c1f71
  * @context: a #DnfContext instance.
2c1f71
- * @name: A package or group name, e.g. "firefox" or "@gnome-desktop"
2c1f71
+ * @name: A package specification (NEVRA forms, provide, file provide, globs supported) e.g. "firefox"
2c1f71
  * @error: A #GError or %NULL
2c1f71
  *
2c1f71
  * Finds an installed and remote package and marks it to be synchronized with remote version.
2c1f71
-- 
2c1f71
2.36.1
2c1f71