freebsd-ports/net-p2p/py-bittorrent/files/patch-BitTorrent__AutoUpdateButler.py
Mario Sergio Fujikawa Ferreira 593741302b Update to 5.0.7
2007-05-31 02:04:24 +00:00

11 lines
558 B
Python

--- ./BitTorrent/AutoUpdateButler.py.orig Mon May 7 05:41:38 2007
+++ ./BitTorrent/AutoUpdateButler.py Mon May 7 05:42:02 2007
@@ -300,7 +300,7 @@
def _check_signature(self, torrentfile, signature):
"""Check the torrent file's signature using the public key."""
- public_key_file = open(os.path.join(doc_root, 'public.key'), 'rb')
+ public_key_file = open(os.path.join(%%DATADIR%%, 'public.key'), 'rb')
public_key = pickle.load(public_key_file)
public_key_file.close()
h = sha(torrentfile).digest()