Blame SOURCES/0038-context-Fix-doc-dnf_context_install-remove-update-di.patch

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