yifengyou / rpms / yum

Forked from rpms/yum 3 years ago
Clone

Blame SOURCES/BZ-1411692-docs-conf-var-naming-rules.patch

d2a170
diff -up yum-3.4.3/docs/yum.conf.5.orig yum-3.4.3/docs/yum.conf.5
d2a170
--- yum-3.4.3/docs/yum.conf.5.orig	2017-11-01 14:58:28.259740017 +0100
d2a170
+++ yum-3.4.3/docs/yum.conf.5	2017-11-01 14:58:48.528648100 +0100
d2a170
@@ -1356,8 +1356,17 @@ the same name. If the shell environment
d2a170
 configuration file variable will not be replaced.
d2a170
 
d2a170
 .LP
d2a170
-As of 3.2.28, any file in /etc/yum/vars is turned into a variable named after
d2a170
-the filename (or overrides any of the above variables).
d2a170
+When variable names are parsed in a string, all alphanumeric characters and
d2a170
+underscores immediately following a $ sign are interpreted as part of a name.
d2a170
+If a variable is undefined, it will not be replaced.
d2a170
+For example, the strings $releasever-foo or $releasever/foo will be expanded
d2a170
+with the $releasever value accordingly, whereas $releaseverfoo or
d2a170
+$releasever_foo will not be expanded.
d2a170
+
d2a170
+As of 3.2.28, any properly named file in /etc/yum/vars is turned into
d2a170
+a variable named after the filename (or overrides any of the above variables).
d2a170
+Filenames may contain only alphanumeric characters and underscores
d2a170
+and be in lowercase.
d2a170
 
d2a170
 Note that no warnings/errors are given if the files are unreadable, so creating
d2a170
 files that only root can read may be confusing for users.