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

d2a170
commit 4ec4888593f739328600d42c1ad5a33d6b72674a
d2a170
Author: Vratislav Podzimek <vpodzime@redhat.com>
d2a170
Date:   Tue Apr 8 09:37:01 2014 -0400
d2a170
d2a170
    Remove extra del(fo) for weird C NULL execption (it is valid). BZ 1058297.
d2a170
d2a170
diff --git a/yum/misc.py b/yum/misc.py
d2a170
index 347a07a..cdc08a0 100644
d2a170
--- a/yum/misc.py
d2a170
+++ b/yum/misc.py
d2a170
@@ -360,7 +360,6 @@ def checksum(sumtype, file, CHUNK=2**16, datasize=None):
d2a170
 
d2a170
         if type(file) is types.StringType:
d2a170
             fo.close()
d2a170
-            del fo
d2a170
             
d2a170
         # This screws up the length, but that shouldn't matter. We only care
d2a170
         # if this checksum == what we expect.
d2a170
commit 7cd5919c13e4e5efbd9c0b291124893e550e3633
d2a170
Author: Vratislav Podzimek <vpodzime@redhat.com>
d2a170
Date:   Tue Apr 15 09:46:23 2014 -0400
d2a170
d2a170
    Remove CHUNK argument from open, in checksum. BZ 1058297.
d2a170
d2a170
diff --git a/yum/misc.py b/yum/misc.py
d2a170
index cdc08a0..6850ae2 100644
d2a170
--- a/yum/misc.py
d2a170
+++ b/yum/misc.py
d2a170
@@ -351,7 +351,7 @@ def checksum(sumtype, file, CHUNK=2**16, datasize=None):
d2a170
         if type(file) not in types.StringTypes:
d2a170
             fo = file # assume it's a file-like-object
d2a170
         else:           
d2a170
-            fo = open(file, 'r', CHUNK)
d2a170
+            fo = open(file, 'r')
d2a170
 
d2a170
         data = Checksums([sumtype])
d2a170
         while data.read(fo, CHUNK):