Fix (hack?) to get 0.7.2 to work for me

Daniel Robbins drobbins@gentoo.org
16 Apr 2002 22:02:55 -0600


--=-Bg8UIVEXhptk307jLAA9
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi All,

First of all, I *love* rdiff-backup and it was just the tool I was
looking for.  I needed features in 0.7.2 but found that I couldn't
backup remotely -- if I ran rdiff-backup --server, I'd get the following
traceback:

$ ./rdiff-backup --server
Traceback (most recent call last):
  File "./rdiff-backup", line 5717, in ?
    Globals.Main.Main()
  File "./rdiff-backup", line 5462, in Main
    self.misc_setup(rps)
  File "./rdiff-backup", line 5431, in misc_setup
    rps[0].conn.Globals.set_select(1, rps[0], self.select_opts)
IndexError: list index out of range

I applied a simple fix that worked for me, but someone like Ben should
verify that it doesn't cause any unwanted side-effects.  I'm attaching
the patch to this email.  (It's a simple two-liner)

Best Regards,

-- 
Daniel Robbins                                  <drobbins@gentoo.org>
Chief Architect/President                       http://www.gentoo.org 
Gentoo Technologies, Inc.

--=-Bg8UIVEXhptk307jLAA9
Content-Disposition: attachment; filename=my.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=my.diff; charset=ISO-8859-1

--- rdiff-backup	Tue Apr 16 22:41:46 2002
+++ /usr/local/bin/rdiff-backup	Tue Apr 16 16:43:07 2002
@@ -5428,6 +5428,8 @@
 			for rp in rps: rp.setdata() # Update with userinfo
=20
 		os.umask(077)
+		if not rps:
+			return
 		rps[0].conn.Globals.set_select(1, rps[0], self.select_opts)
 		if len(rps) =3D=3D 2:
 			rps[1].conn.Globals.set_select(None, rps[1],

--=-Bg8UIVEXhptk307jLAA9--