[yum-commits] yum/__init__.py

zpavlas at osuosl.org zpavlas at osuosl.org
Mon Mar 11 09:51:57 UTC 2013


 yum/__init__.py |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 62729167f1f1696effa45fe8238424484d536448
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date:   Mon Mar 11 10:50:39 2013 +0100

    Fix double unlink().  verifyPkg() already handles this.  BZ 919657

diff --git a/yum/__init__.py b/yum/__init__.py
index 801815a..2bf9b43 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -2238,8 +2238,6 @@ much more problems).
                     adderror(po, _('package fails checksum but caching is '
                         'enabled for %s') % po.repo.id)
                     return False
-                if os.path.getsize(local) >= po.size:
-                    os.unlink(local)
             if downloadonly:
                 po.localpath += '.%d.tmp' % os.getpid()
                 try: os.rename(local, po.localpath)


More information about the Yum-commits mailing list