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

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