yifengyou / rpms / yum

Forked from rpms/yum 3 years ago
Clone

Blame SOURCES/BZ-1757613-downloadonly-do-not-reset-localpath.patch

5ab7f2
commit 3da1a101937f62b2e4836346d096d3c745bf34fd
5ab7f2
Author: Lukáš Hrázký <lhrazky@redhat.com>
5ab7f2
Date:   Tue Dec 17 15:17:08 2019 +0100
5ab7f2
5ab7f2
    Don't reset the package localpath to temporary after download (RhBug:1757613)
5ab7f2
    
5ab7f2
    The path is already changed from temporary to final earlier in the
5ab7f2
    function, as the file is renamed. The removed line seems superfluous and
5ab7f2
    out of place, the value in po.localpath should already be the correct
5ab7f2
    one.
5ab7f2
    
5ab7f2
    https://bugzilla.redhat.com/show_bug.cgi?id=1757613
5ab7f2
5ab7f2
diff --git a/yum/__init__.py b/yum/__init__.py
5ab7f2
index 56f8c8c4..9c158c81 100644
5ab7f2
--- a/yum/__init__.py
5ab7f2
+++ b/yum/__init__.py
5ab7f2
@@ -2583,7 +2583,6 @@ much more problems).
5ab7f2
                         result, errmsg = self.sigCheckPkg(po)
5ab7f2
                         if result != 0:
5ab7f2
                             self.verbose_logger.warn("%s", errmsg)
5ab7f2
-                    po.localpath = obj.filename
5ab7f2
                     if po in errors:
5ab7f2
                         del errors[po]
5ab7f2