summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbaserockimport/exts/python.to_lorry11
1 files changed, 7 insertions, 4 deletions
diff --git a/baserockimport/exts/python.to_lorry b/baserockimport/exts/python.to_lorry
index db33e5f..8ee20eb 100755
--- a/baserockimport/exts/python.to_lorry
+++ b/baserockimport/exts/python.to_lorry
@@ -188,10 +188,13 @@ def str_repo_lorry(lorry_prefix, package_name, repo_type, url):
# TODO: this products field 'x-products-python'
# probably shouldn't be hardcoded here
- return json.dumps({name: {'type': repo_type,
- 'url': url,
- 'x-products-python': [package_name]}},
- indent=4, sort_keys=True)
+
+ lorry = {'type': repo_type, 'url': url, 'x-products-python': [package_name]}
+
+ if repo_type == 'svn':
+ lorry['layout'] = 'standard'
+
+ return json.dumps({name: lorry}, indent=4, sort_keys=True)
class PythonLorryExtension(ImportExtension):