35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From e3719102eb791fce3189b548aca39ad682fc4157 Mon Sep 17 00:00:00 2001
|
|
From: Evan Goode <mail@evangoo.de>
|
|
Date: Mon, 14 Jul 2025 17:31:04 +0000
|
|
Subject: [PATCH 1/2] Add deprecation warning for module commands
|
|
|
|
For: https://issues.redhat.com/browse/RHEL-89940
|
|
---
|
|
dnf/cli/commands/module.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/dnf/cli/commands/module.py b/dnf/cli/commands/module.py
|
|
index b1396360e..88dc8b23c 100644
|
|
--- a/dnf/cli/commands/module.py
|
|
+++ b/dnf/cli/commands/module.py
|
|
@@ -349,7 +349,7 @@ class ModuleCommand(commands.Command):
|
|
SUBCMDS_NOT_REQUIRED_ARG = {ListSubCommand}
|
|
|
|
aliases = ("module",)
|
|
- summary = _("Interact with Modules.")
|
|
+ summary = _("Interact with Modules. WARNING: modularity is deprecated, and functionality will be removed in a future release of DNF5.")
|
|
|
|
def __init__(self, cli):
|
|
super(ModuleCommand, self).__init__(cli)
|
|
@@ -389,6 +389,7 @@ class ModuleCommand(commands.Command):
|
|
help=_("Module specification"))
|
|
|
|
def configure(self):
|
|
+ logger.warning(_("WARNING: modularity is deprecated, and functionality will be removed in a future release of DNF5."))
|
|
try:
|
|
self.subcmd = self._subcmd_name2obj[self.opts.subcmd[0]]
|
|
except (CliError, KeyError):
|
|
--
|
|
2.50.1
|
|
|