summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-16 20:24:12 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-16 20:30:16 +0000
commit06f15c8b7d514353ccfe50db92bfbe64c1c555b4 (patch)
tree8753c3d787c9b3de356a08634e81681b88a53917 /morphlib
parenta714fac3d2df7c1e81cf179c82741d6372dfa26b (diff)
downloadmorph-06f15c8b7d514353ccfe50db92bfbe64c1c555b4.tar.gz
Use a colon-less local filename for saved bundles
Otherwise we have to deal with git's not liking colons in filenames.
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/sourcemanager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/sourcemanager.py b/morphlib/sourcemanager.py
index 5ff77022..11d891de 100644
--- a/morphlib/sourcemanager.py
+++ b/morphlib/sourcemanager.py
@@ -81,6 +81,7 @@ class SourceManager(object):
t = urlparse.urlparse(url)
path = t[2]
basename = os.path.basename(path)
+ basename = '_'.join(basename.split(':'))
saved_name = os.path.join(self.cache_dir, basename)
source_handle = urllib2.urlopen(url)