fix resume so it won't always recheck the hash; pointed to by ckuethe@
This commit is contained in:
parent
1cdde3ae0e
commit
e3673b9a42
@ -1,12 +1,12 @@
|
||||
# $OpenBSD: Makefile,v 1.20 2006/06/03 09:43:03 alek Exp $
|
||||
# $OpenBSD: Makefile,v 1.21 2006/09/20 16:02:03 naddy Exp $
|
||||
|
||||
COMMENT= "cooperative file distribution system implemented in Python"
|
||||
COMMENT-gui= "graphical interface components for BitTorrent"
|
||||
|
||||
VERSION= 4.4.0
|
||||
DISTNAME= BitTorrent-${VERSION}
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
PKGNAME-gui= BitTorrent-gui-${VERSION}p0
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
PKGNAME-gui= BitTorrent-gui-${VERSION}p1
|
||||
CATEGORIES= net
|
||||
|
||||
HOMEPAGE= http://www.bittorrent.com/
|
||||
|
12
net/BitTorrent/patches/patch-BitTorrent_Storage_py
Normal file
12
net/BitTorrent/patches/patch-BitTorrent_Storage_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-BitTorrent_Storage_py,v 1.1 2006/09/20 16:02:03 naddy Exp $
|
||||
--- BitTorrent/Storage.py.orig Wed Sep 20 16:51:21 2006
|
||||
+++ BitTorrent/Storage.py Wed Sep 20 16:51:50 2006
|
||||
@@ -231,7 +231,7 @@ class Storage(object):
|
||||
line = resumefile.readline()
|
||||
size, mtime = line.split()[:2] # allow adding extra fields
|
||||
size = int(size)
|
||||
- mtime = int(mtime)
|
||||
+ mtime = int(float(mtime))
|
||||
if os.path.exists(filename):
|
||||
fsize = os.path.getsize(filename)
|
||||
else:
|
Loading…
x
Reference in New Issue
Block a user