Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/node/routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/node/routes.py')
-rw-r--r--sugar_network/node/routes.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/sugar_network/node/routes.py b/sugar_network/node/routes.py
index 7393684..337d744 100644
--- a/sugar_network/node/routes.py
+++ b/sugar_network/node/routes.py
@@ -523,6 +523,15 @@ def load_bundle(volume, request, bundle_path):
impl['stability'] = spec['stability']
if spec['license'] is not EMPTY_LICENSE:
impl['license'] = spec['license']
+ requires = impl['requires'] = []
+ for dep_name, dep in spec.requires.items():
+ found = False
+ for version in dep.versions_range():
+ requires.append('%s-%s' % (dep_name, version))
+ found = True
+ if not found:
+ requires.append(dep_name)
+
data['spec'] = {'*-*': {
'commands': spec.commands,
'requires': spec.requires,