r150 - in /debtorrent/trunk: DebTorrent/BT1/AptListener.py DebTorrent/download_bt1.py config.debtorrent.ini
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Thu Jul 12 19:55:39 UTC 2007
Author: camrdale-guest
Date: Thu Jul 12 19:55:39 2007
New Revision: 150
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=150
Log:
Rename the apt_parse_dir_interval option to parse_ip_files.
Modified:
debtorrent/trunk/DebTorrent/BT1/AptListener.py
debtorrent/trunk/DebTorrent/download_bt1.py
debtorrent/trunk/config.debtorrent.ini
Modified: debtorrent/trunk/DebTorrent/BT1/AptListener.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/BT1/AptListener.py?rev=150&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/BT1/AptListener.py (original)
+++ debtorrent/trunk/DebTorrent/BT1/AptListener.py Thu Jul 12 19:55:39 2007
@@ -81,8 +81,8 @@
@ivar handler: the download handler to use
@type config: C{dictionary}
@ivar config: the configuration parameters
- @type parse_dir_interval: C{int}
- @ivar parse_dir_interval: seconds between reloading of the
+ @type parse_ip_files: C{int}
+ @ivar parse_ip_files: seconds between reloading of the
lists of allowed and banned IPs
@type favicon: C{string}
@ivar favicon: file containing x-icon data
@@ -145,7 +145,7 @@
self.handler = handler
self.config = config
favicon = config['favicon']
- self.parse_dir_interval = config['apt_parse_dir_interval']
+ self.parse_ip_files = config['parse_ip_files']
self.favicon = None
if favicon:
try:
@@ -686,7 +686,7 @@
def read_ip_lists(self):
"""Periodically parse the allowed and banned IPs lists."""
- self.rawserver.add_task(self.read_ip_lists,self.parse_dir_interval)
+ self.rawserver.add_task(self.read_ip_lists,self.parse_ip_files)
f = self.config['allowed_ips']
if f and self.allowed_ip_mtime != os.path.getmtime(f):
Modified: debtorrent/trunk/DebTorrent/download_bt1.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/download_bt1.py?rev=150&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/download_bt1.py (original)
+++ debtorrent/trunk/DebTorrent/download_bt1.py Thu Jul 12 19:55:39 2007
@@ -188,7 +188,7 @@
('min_time_between_log_flushes', 3.0,
'minimum time it must have been since the last flush to do another one'),
('hupmonitor', 0, 'whether to reopen the log file upon receipt of HUP signal'),
- ('apt_parse_dir_interval', 60, 'seconds between reloading of ' +
+ ('parse_ip_files', 60, 'seconds between reloading of ' +
'allowed_ips and banned_ips lists for apt'),
('show_infopage', 1, "whether to display an info page when the tracker's root dir is loaded"),
('infopage_redirect', '', 'a URL to redirect the info page to'),
Modified: debtorrent/trunk/config.debtorrent.ini
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/config.debtorrent.ini?rev=150&op=diff
==============================================================================
--- debtorrent/trunk/config.debtorrent.ini (original)
+++ debtorrent/trunk/config.debtorrent.ini Thu Jul 12 19:55:39 2007
@@ -393,13 +393,13 @@
# banned_ips = ""
#
-# APT Parse Directory Interval
+# Parse IP Files
#
# The number of seconds between reloading of Allowed and Banned IP lists
# for the APT request listener.
#
-# apt_parse_dir_interval = 60
+# parse_ip_files = 60
###############################################################################
# B A C K U P H T T P D O W N L O A D E R
More information about the Debtorrent-commits
mailing list