summaryrefslogtreecommitdiff
path: root/update_sharing.py
diff options
context:
space:
mode:
Diffstat (limited to 'update_sharing.py')
-rwxr-xr-xupdate_sharing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_sharing.py b/update_sharing.py
index d2b357b..1ea3d28 100755
--- a/update_sharing.py
+++ b/update_sharing.py
@@ -1,5 +1,6 @@
#!/usr/bin/python
+import binascii
import sqlite3
from dedup.utils import fetchiter
@@ -49,7 +50,7 @@ def main():
cur.execute("SELECT content.package, content.id, content.filename, content.size, hash.function FROM hash JOIN content ON hash.cid = content.id WHERE hash = ?;",
(hashvalue,))
rows = cur.fetchall()
- print("processing hash %s with %d entries" % (hashvalue, len(rows)))
+ print("processing hash %s with %d entries" % (binascii.b2a_hex(hashvalue), len(rows)))
pkgdict = compute_pkgdict(rows)
cur.executemany("INSERT OR IGNORE INTO duplicate (cid) VALUES (?);",
[(row[1],) for row in rows])