richardphibel / rpms / dnf

Forked from rpms/dnf 2 years ago
Clone

Blame SOURCES/0015-Allow-destdir-option-with-modulesync-command.patch

39dbb9
From 6af9938c87cf409f886f21b59ec45c54eda6c8b2 Mon Sep 17 00:00:00 2001
39dbb9
From: Jaroslav Mracek <jmracek@redhat.com>
39dbb9
Date: Tue, 2 Nov 2021 14:23:22 +0100
39dbb9
Subject: [PATCH] Allow destdir option with modulesync command
39dbb9
39dbb9
---
39dbb9
 dnf/cli/cli.py      | 2 +-
39dbb9
 doc/command_ref.rst | 2 +-
39dbb9
 2 files changed, 2 insertions(+), 2 deletions(-)
39dbb9
39dbb9
diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py
52b19a
index 65769978..a315201c 100644
39dbb9
--- a/dnf/cli/cli.py
39dbb9
+++ b/dnf/cli/cli.py
39dbb9
@@ -810,7 +810,7 @@ class Cli(object):
39dbb9
         if opts.destdir is not None:
39dbb9
             self.base.conf.destdir = opts.destdir
39dbb9
             if not self.base.conf.downloadonly and opts.command not in (
39dbb9
-                    'download', 'system-upgrade', 'reposync'):
39dbb9
+                    'download', 'system-upgrade', 'reposync', 'modulesync'):
39dbb9
                 logger.critical(_('--destdir or --downloaddir must be used with --downloadonly '
39dbb9
                                   'or download or system-upgrade command.')
39dbb9
                 )
39dbb9
diff --git a/doc/command_ref.rst b/doc/command_ref.rst
52b19a
index f96c0eac..42aec72c 100644
39dbb9
--- a/doc/command_ref.rst
39dbb9
+++ b/doc/command_ref.rst
39dbb9
@@ -182,7 +182,7 @@ Options
39dbb9
 ``--downloaddir=<path>, --destdir=<path>``
39dbb9
     Redirect downloaded packages to provided directory. The option has to be used together with the \-\
39dbb9
     :ref:`-downloadonly <downloadonly-label>` command line option, with the
39dbb9
-    ``download`` command (dnf-plugins-core) or with the ``system-upgrade`` command
39dbb9
+    ``download``, ``modulesync`` or ``reposync`` commands (dnf-plugins-core) or with the ``system-upgrade`` command
39dbb9
     (dnf-plugins-extras).
39dbb9
 
39dbb9
 .. _downloadonly-label:
52b19a
-- 
52b19a
2.35.1
39dbb9