Change-Id: I83e3e438d37c680719217410d10631f3959ba3bb
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3625
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Sharath George
| 12 | 12 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,13 @@ |
| 0 |
+diff --git a/yum/__init__.py b/yum/__init__.py |
|
| 1 |
+index 99039e0..003adda 100644 |
|
| 2 |
+--- a/yum/__init__.py |
|
| 3 |
+@@ -490,7 +490,7 @@ class YumBase(depsolve.Depsolve): |
|
| 4 |
+ repo.name = section |
|
| 5 |
+ self.logger.error(_('Repository %r is missing name in configuration, '
|
|
| 6 |
+ 'using id') % section) |
|
| 7 |
+- repo.name = to_unicode(repo.name) |
|
| 8 |
++ repo.name = to_unicode(varReplace(repo.name, self.conf.yumvar)) |
|
| 9 |
+ |
|
| 10 |
+ # Set attributes not from the config file |
|
| 11 |
+ repo.basecachedir = self.conf.cachedir |
| ... | ... |
@@ -1,12 +1,13 @@ |
| 1 | 1 |
Summary: RPM installer/updater |
| 2 | 2 |
Name: yum |
| 3 | 3 |
Version: 3.4.3 |
| 4 |
-Release: 7%{?dist}
|
|
| 4 |
+Release: 8%{?dist}
|
|
| 5 | 5 |
License: GPLv2+ |
| 6 | 6 |
Group: System Environment/Base |
| 7 | 7 |
Source0: %{name}-%{version}.tar.gz
|
| 8 | 8 |
Patch0: yumconf.patch |
| 9 | 9 |
Patch1: parser.patch |
| 10 |
+Patch2: yum-repo-name.patch |
|
| 10 | 11 |
%define sha1 yum=8ec5d339e4518a7908fd4db0721740288a3d8b6c |
| 11 | 12 |
URL: http://yum.baseurl.org/ |
| 12 | 13 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -78,6 +79,7 @@ automatically, prompting the user for permission as necessary. |
| 78 | 78 |
%setup -q |
| 79 | 79 |
%patch0 -p1 |
| 80 | 80 |
%patch1 -p1 |
| 81 |
+%patch2 -p1 |
|
| 81 | 82 |
|
| 82 | 83 |
%build |
| 83 | 84 |
make |
| ... | ... |
@@ -200,6 +202,8 @@ touch $RPM_BUILD_ROOT/var/lib/yum/uuid |
| 200 | 200 |
%exclude %{_mandir}/man*/yum-updatesd*
|
| 201 | 201 |
|
| 202 | 202 |
%changelog |
| 203 |
+* Wed Aug 23 2017 Xiaolin Li <xiaolinl@vmware.com> 3.4.3-8 |
|
| 204 |
+- Replaced variables in repo name. |
|
| 203 | 205 |
* Wed Mar 29 2017 Xiaolin Li <xiaolinl@vmware.com> 3.4.3-7 |
| 204 | 206 |
- Added python-rpm to requires. |
| 205 | 207 |
* Mon Jun 06 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.4.3-6 |