]> arthur.barton.de Git - bup.git/commitdiff
client.py: Windows files don't support ':', so rename cachedir.
authorLukasz Kosewski <lkosewsk@gmail.com>
Sun, 10 Jan 2010 09:15:07 +0000 (04:15 -0500)
committerLukasz Kosewski <lkosewsk@gmail.com>
Sun, 10 Jan 2010 09:15:07 +0000 (04:15 -0500)
Cachedir was previously $host:$dir, and is now $host-$dir.

client.py

index c8e0818715b94d8e02cbb59f8fc58ea2e1b2c380..6a373eb5d177b777d2e7d2263d501d42571d0027 100644 (file)
--- a/client.py
+++ b/client.py
@@ -40,7 +40,7 @@ class Client:
         (self.host, self.dir) = (host, dir)
         self.cachedir = git.repo('index-cache/%s'
                                  % re.sub(r'[^@:\w]', '_', 
-                                          "%s:%s" % (host, dir)))
+                                          "%s-%s" % (host, dir)))
         try:
             self.p = p = Popen(argv, stdin=PIPE, stdout=PIPE, preexec_fn=fixenv)
         except OSError, e: