Package: trac-bitten-slave
Version: 0.6+final-3
Severity: normal
Tags: patch upstream

bitten-slave can't connect to an SVN repository if an empty password is
specified in the XML configuration, eg.

   <svn:checkout url="svn://blah/" path="${path}" revision="${revision}"
                 username="anonymous" password="" no_auth_cache="true" />

Instead it will prompt for a password, which is not desired. The
attached patch fixes this problem.

Cheers,
-- 
Sam.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.3.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages trac-bitten-slave depends on:
ii  python                2.7.3~rc2-1
ii  python-pkg-resources  0.6.24-1
ii  python2.6             2.6.7-4
ii  python2.7             2.7.3~rc2-2.1

trac-bitten-slave recommends no packages.

Versions of packages trac-bitten-slave suggests:
ii  adduser  3.113+nmu3

-- no debconf information
Index: debian/changelog
===================================================================
--- debian/changelog	(revision 8886)
+++ debian/changelog	(working copy)
@@ -1,3 +1,10 @@
+trac-bitten (0.6+final-3.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Allow to authenticate with an empty SVN password.
+
+ -- Sam Hocevar <s...@debian.org>  Sat, 23 Jun 2012 17:29:13 +0200
+
 trac-bitten (0.6+final-3) unstable; urgency=low
 
   * Add breaks/replaces in trac-bitten-slave (Closes: #655958).
Index: debian/patches/series
===================================================================
--- debian/patches/series	(revision 0)
+++ debian/patches/series	(revision 0)
@@ -0,0 +1 @@
+patch-empty-password-auth.diff
Index: debian/patches/patch-empty-password-auth.diff
===================================================================
--- debian/patches/patch-empty-password-auth.diff	(revision 0)
+++ debian/patches/patch-empty-password-auth.diff	(revision 0)
@@ -0,0 +1,38 @@
+--- a/bitten/build/svntools.py	2012-06-23 18:19:03.529238285 +0200
++++ b/bitten/build/svntools.py	2012-06-23 18:19:41.789336008 +0200
+@@ -90,9 +90,9 @@ def checkout(ctxt, url, path=None, revis
+         final_url = posixpath.join(url, path.lstrip('/'))
+     else:
+         final_url = url
+-    if username:
++    if username is not None:
+         args += ['--username', username]
+-    if password:
++    if password is not None:
+         args += ['--password', password]
+     if no_auth_cache.lower() == 'true':
+         args += ['--no-auth-cache']
+@@ -135,9 +135,9 @@ def export(ctxt, url, path=None, revisio
+         args += ['-r', revision]
+     if path:
+         url = posixpath.join(url, path)
+-    if username:
++    if username is not None:
+         args += ['--username', username]
+-    if password:
++    if password is not None:
+         args += ['--password', password]
+     if no_auth_cache.lower() == 'true':
+         args += ['--no-auth-cache']
+@@ -163,9 +163,9 @@ def update(ctxt, revision=None, dir_='.'
+     args = ['update']
+     if revision:
+         args += ['-r', revision]
+-    if username:
++    if username is not None:
+         args += ['--username', username]
+-    if password:
++    if password is not None:
+         args += ['--password', password]
+     if no_auth_cache.lower() == 'true':
+         args += ['--no-auth-cache']

Reply via email to