summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-08-31 15:35:57 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-08-31 15:35:57 +0100
commit4a951edc804d8034151cbc65bbcac850c794391a (patch)
treea3d1e9f411746ef6c2a21913e54ac677cdcfce6d
parent366f79fe42632336f223110eb95057586672dc3e (diff)
downloadlorry-4a951edc804d8034151cbc65bbcac850c794391a.tar.gz
Allow slashes in project names
-rwxr-xr-xlorry3
1 files changed, 2 insertions, 1 deletions
diff --git a/lorry b/lorry
index cbd41ae..1f0580a 100755
--- a/lorry
+++ b/lorry
@@ -413,8 +413,9 @@ class Lorry(cliapp.Application):
return ''.join(' %s\n' % line for line in string.splitlines())
def dirname(self, project_name):
- assert '/' not in project_name
assert '\0' not in project_name
+ # We escape slashes as underscores.
+ project_name = '_'.join(project_name.split('/'))
return os.path.join(self.settings['working-area'], project_name)
def progress(self, msg):