Last active
August 29, 2015 13:57
-
-
Save droopy4096/9403751 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/lib/python2.6/site-packages/yum/history.py.orig 2014-03-06 18:38:17.403998494 -0700 | |
+++ /usr/lib/python2.6/site-packages/yum/history.py 2014-03-10 20:03:02.786998710 -0600 | |
@@ -750,7 +750,7 @@ | |
continue | |
if sql_checksum is None: | |
continue | |
- if checksum == sql_checksum: | |
+ if to_unicode(checksum) == to_unicode(sql_checksum): | |
return sql_pkgtupid | |
if not create: | |
@@ -764,7 +764,7 @@ | |
"""INSERT INTO pkgtups | |
(name, arch, epoch, version, release, checksum) | |
VALUES (?, ?, ?, ?, ?, ?)""", (n,a,e,v,r, | |
- checksum)) | |
+ to_unicode(checksum))) | |
else: | |
res = executeSQL(cur, | |
"""INSERT INTO pkgtups |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment