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-26 11:59:04 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-26 11:59:04 (GMT)
commit5dcf454dacb1a104fea90735f9a0fa2d76854faf (patch)
tree2323715ae506fcf2627c7fbaabc7d072c387ab3d /commands
parentc5709d02c5bc52e06862c14df8df4fc764f30d09 (diff)
Add a DistroInfo class
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/check-system2
-rw-r--r--commands/common.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/check-system b/commands/check-system
index 2f501c0..85d1f7d 100755
--- a/commands/check-system
+++ b/commands/check-system
@@ -32,7 +32,7 @@ def apply_ubuntu_tweaks():
command.run_with_sudo([ubuntu_tweaks])
-if distro.get_distro_name() == "ubuntu":
+if distro.get_distro_info().name == "ubuntu":
apply_ubuntu_tweaks()
interactive = "SUGAR_BUILDBOT" not in os.environ
diff --git a/commands/common.py b/commands/common.py
index e8fab6c..82f3869 100644
--- a/commands/common.py
+++ b/commands/common.py
@@ -23,7 +23,7 @@ def setup():
config.set_home_dir(os.path.join(base_dir, "home"))
config.set_prefs_path(os.path.join(base_dir, "prefs"))
- version = distro.get_system_version()
+ version = distro.get_distro_info().system_version
module_files = ["system-%s.json" % version,
"sugar.json",