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