Package: inosync
Version: 0.2.1-1
Severity: minor
Tags: patch


Hi,

i'd like another config parameter, that would allow us to send any thing to 
rsync
(right now it's restricted, if there is a password needed, i can't run inosync)

here is the patch : 

--- inosync     2010-05-21 13:31:21.000000000 -0400
+++ inosync.modified    2010-05-30 23:31:19.000000000 -0400
@@ -69,6 +69,7 @@
       return
     args = [config.rsync, "-ltrp", "--delete"]
     args.append("--bwlimit=%s" % config.rspeed)
+    args.append("%s" % config.additionnal)
     if config.logfile:
       args.append("--log-file=%s" % config.logfile)
     if "excludes" in dir(config):
@@ -152,6 +153,11 @@
   if not "rspeed" in dir(config) or config.rspeed < 0:
     config.rspeed = 0
 
+ 
+  if not "additionnal" in dir(config) or config.additionnal < 0:
+    config.additionnal = None
+
+
   if not "emask" in dir(config):
     config.emask = DEFAULT_EVENTS
   for event in config.emask:


and in the config file we can add 
additionnal= "--password-file=/etc/inosync.password"

thanks

(ps : i backported it to lenny)

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages inosync depends on:
ii  python                        2.5.2-3    An interactive high-level object-o
ii  python-pyinotify              0.8.9-1    simple Linux inotify Python bindin
ii  rsync                         3.0.3-2    fast remote file copy program (lik

inosync recommends no packages.

inosync suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to