yifengyou / rpms / yum

Forked from rpms/yum 4 years ago
Clone

Blame SOURCES/BZ-1058297-remove-del-for-weird-anaconda-C-NULL-exception.patch

1f1d7d
commit 4ec4888593f739328600d42c1ad5a33d6b72674a
1f1d7d
Author: Vratislav Podzimek <vpodzime@redhat.com>
1f1d7d
Date:   Tue Apr 8 09:37:01 2014 -0400
1f1d7d
1f1d7d
    Remove extra del(fo) for weird C NULL execption (it is valid). BZ 1058297.
1f1d7d
1f1d7d
diff --git a/yum/misc.py b/yum/misc.py
1f1d7d
index 347a07a..cdc08a0 100644
1f1d7d
--- a/yum/misc.py
1f1d7d
+++ b/yum/misc.py
1f1d7d
@@ -360,7 +360,6 @@ def checksum(sumtype, file, CHUNK=2**16, datasize=None):
1f1d7d
 
1f1d7d
         if type(file) is types.StringType:
1f1d7d
             fo.close()
1f1d7d
-            del fo
1f1d7d
             
1f1d7d
         # This screws up the length, but that shouldn't matter. We only care
1f1d7d
         # if this checksum == what we expect.