Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-17 20:06:40 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-17 20:06:40 (GMT)
commitff6d17f224589ca13d85ffbc0e6c732646487a6f (patch)
tree5f98563879ead2d425cb2b174293b77c36c4811f /commands
parentdfaf836ebd3f1f4807b147d8af5ca3fb8895d581 (diff)
Move files lists out of devbot
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/check-system1
-rw-r--r--commands/common.py20
2 files changed, 21 insertions, 0 deletions
diff --git a/commands/check-system b/commands/check-system
index 76914fb..99de7b4 100755
--- a/commands/check-system
+++ b/commands/check-system
@@ -1,6 +1,7 @@
#!/usr/bin/python
import argparse
+import os
import common
diff --git a/commands/common.py b/commands/common.py
index 4197912..20df94c 100644
--- a/commands/common.py
+++ b/commands/common.py
@@ -7,6 +7,7 @@ sys.path.append(base_path)
from devbot import system
from devbot import config
+from devbot import distro
def setup():
config.set_config_dir(os.path.join(base_path, "config"))
@@ -15,3 +16,22 @@ def setup():
config.set_build_dir(os.path.join(base_path, "build"))
config.set_commands_dir(os.path.join(base_path, "commands"))
config.set_logs_dir(os.path.join(base_path, "logs"))
+
+ version = distro.get_system_version()
+
+ module_files = ["system-%s.json" % version,
+ "sugar.json",
+ "activities.json"]
+
+ config.set_module_files(module_files)
+
+ dep_files = ["system",
+ "sugar-build",
+ "sugar-buildtime-%s" % version,
+ "sugar-runtime-%s" % version]
+
+ config.set_dep_files(dep_files)
+
+ package_files = ["packages-%s" % version]
+
+ config.set_package_files(package_files)