[Debtorrent-commits] r14 - in /debtorrent/trunk:
DebTorrent/BT1/track.py
DebTorrent/download_bt1.py DebTorrent/parsedir.py btlaunchmany.py
btlaunchmanycurses.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Thu Apr 26 19:55:03 UTC 2007
Author: camrdale-guest
Date: Thu Apr 26 19:55:03 2007
New Revision: 14
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=14
Log:
Changed all .torrent to .dtorrent
Modified:
debtorrent/trunk/DebTorrent/BT1/track.py
debtorrent/trunk/DebTorrent/download_bt1.py
debtorrent/trunk/DebTorrent/parsedir.py
debtorrent/trunk/btlaunchmany.py
debtorrent/trunk/btlaunchmanycurses.py
Modified: debtorrent/trunk/DebTorrent/BT1/track.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/BT1/track.py?rev=14&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/BT1/track.py (original)
+++ debtorrent/trunk/DebTorrent/BT1/track.py Thu Apr 26 19:55:03 2007
@@ -63,7 +63,7 @@
'minimum time it must have been since the last flush to do another one'),
('min_time_between_cache_refreshes', 600.0,
'minimum time in seconds before a cache is considered stale and is flushed'),
- ('allowed_dir', '', 'only allow downloads for .torrents in this dir'),
+ ('allowed_dir', '', 'only allow downloads for .dtorrents in this dir'),
('allowed_list', '', 'only allow downloads for hashes in this list (hex format, one per line)'),
('allowed_controls', 0, 'allow special keys in torrents in the allowed_dir to affect tracker access'),
('multitracker_enabled', 0, 'whether to enable multitracker operation'),
@@ -491,7 +491,7 @@
% (nf, tc, td, tn))
s.write('</table>\n' \
'<ul>\n' \
- '<li><em>info hash:</em> SHA1 hash of the "info" section of the metainfo (*.torrent)</li>\n' \
+ '<li><em>info hash:</em> SHA1 hash of the "info" section of the metainfo (*.dtorrent)</li>\n' \
'<li><em>complete:</em> number of connected clients with the complete file</li>\n' \
'<li><em>downloading:</em> number of connected clients still downloading</li>\n' \
'<li><em>downloaded:</em> reported complete downloads</li>\n' \
@@ -1023,7 +1023,7 @@
if self.config['allowed_dir']:
r = parsedir( self.config['allowed_dir'], self.allowed,
self.allowed_dir_files, self.allowed_dir_blocked,
- [".torrent"] )
+ [".dtorrent"] )
( self.allowed, self.allowed_dir_files, self.allowed_dir_blocked,
added, garbage2 ) = r
Modified: debtorrent/trunk/DebTorrent/download_bt1.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/download_bt1.py?rev=14&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/download_bt1.py (original)
+++ debtorrent/trunk/DebTorrent/download_bt1.py Thu Apr 26 19:55:03 2007
@@ -420,7 +420,7 @@
if not existing:
file = path.join(file, self.info['name'])
if path.exists(file) and not path.isdir(file):
- if file[-8:] == '.torrent':
+ if file[-8:] == '.dtorrent':
file = file[:-8]
if path.exists(file) and not path.isdir(file):
self.errorfunc("Can't create dir - " + self.info['name'])
Modified: debtorrent/trunk/DebTorrent/parsedir.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/parsedir.py?rev=14&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/parsedir.py (original)
+++ debtorrent/trunk/DebTorrent/parsedir.py Thu Apr 26 19:55:03 2007
@@ -18,7 +18,7 @@
print ":: "+x
def parsedir(directory, parsed, files, blocked,
- exts = ['.torrent'], return_metainfo = False, errfunc = _errfunc):
+ exts = ['.dtorrent'], return_metainfo = False, errfunc = _errfunc):
if NOISY:
errfunc('checking dir')
dirs_to_check = [directory]
Modified: debtorrent/trunk/btlaunchmany.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/btlaunchmany.py?rev=14&op=diff
==============================================================================
--- debtorrent/trunk/btlaunchmany.py (original)
+++ debtorrent/trunk/btlaunchmany.py Thu Apr 26 19:55:03 2007
@@ -90,7 +90,7 @@
"(only for btlaunchmany.py)"))
if len(argv) < 2:
print "Usage: btlaunchmany.py <directory> <global options>\n"
- print "<directory> - directory to look for .torrent files (semi-recursive)"
+ print "<directory> - directory to look for .dtorrent files (semi-recursive)"
print get_usage(defaults, 80, configdefaults)
exit(1)
config, args = parseargs(argv[1:], defaults, 1, 1, configdefaults)
Modified: debtorrent/trunk/btlaunchmanycurses.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/btlaunchmanycurses.py?rev=14&op=diff
==============================================================================
--- debtorrent/trunk/btlaunchmanycurses.py (original)
+++ debtorrent/trunk/btlaunchmanycurses.py Thu Apr 26 19:55:03 2007
@@ -299,7 +299,7 @@
"(only for btlaunchmanycurses.py)"))
if len(argv) < 2:
print "Usage: btlaunchmanycurses.py <directory> <global options>\n"
- print "<directory> - directory to look for .torrent files (semi-recursive)"
+ print "<directory> - directory to look for .dtorrent files (semi-recursive)"
print get_usage(defaults, 80, configdefaults)
exit(1)
config, args = parseargs(argv[1:], defaults, 1, 1, configdefaults)
More information about the Debtorrent-commits
mailing list