diff options
Diffstat (limited to 'meta/recipes-devtools/dnf/dnf/0001-Check-conf.releasever-instead-of-releasever.patch')
-rw-r--r-- | meta/recipes-devtools/dnf/dnf/0001-Check-conf.releasever-instead-of-releasever.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/meta/recipes-devtools/dnf/dnf/0001-Check-conf.releasever-instead-of-releasever.patch b/meta/recipes-devtools/dnf/dnf/0001-Check-conf.releasever-instead-of-releasever.patch deleted file mode 100644 index 05f3141517..0000000000 --- a/meta/recipes-devtools/dnf/dnf/0001-Check-conf.releasever-instead-of-releasever.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 166833a88a928a574bf9143b9b65f544be482c77 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 18 Aug 2017 15:55:15 +0300 | ||
4 | Subject: [PATCH] Check conf.releasever instead of releasever | ||
5 | |||
6 | The substitutions may actually set the conf.releasever correctly, | ||
7 | and so the check should use that instead of the passed-in function | ||
8 | parameter. | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/rpm-software-management/dnf/pull/901] | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | --- | ||
13 | dnf/cli/cli.py | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py | ||
17 | index 2d63420c..167943b8 100644 | ||
18 | --- a/dnf/cli/cli.py | ||
19 | +++ b/dnf/cli/cli.py | ||
20 | @@ -914,7 +914,7 @@ class Cli(object): | ||
21 | conf.releasever = releasever | ||
22 | subst = conf.substitutions | ||
23 | subst.update_from_etc(conf.installroot) | ||
24 | - if releasever is None: | ||
25 | + if conf.releasever is None: | ||
26 | logger.warning(_("Unable to detect release version (use '--releasever' to specify " | ||
27 | "release version)")) | ||
28 | |||
29 | -- | ||
30 | 2.14.1 | ||
31 | |||