Skip to content

Instantly share code, notes, and snippets.

@droopy4096
Last active August 29, 2015 13:57
Show Gist options
  • Save droopy4096/9403751 to your computer and use it in GitHub Desktop.
Save droopy4096/9403751 to your computer and use it in GitHub Desktop.
--- /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