summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-09-25 10:20:53 (GMT)
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-09-25 10:20:53 (GMT)
commitfb9bdefbbbdbd8fef01278b7c3d9c1592998f6d1 (patch)
treec1f9155f6e197ad5288599065cb3cfb93bff4868
parenta6c4f3b9a1d7cb509ccce670c7d2ee4048e56525 (diff)
parentf6e26418a7459194c5b4c0d07874c4ff7d897d89 (diff)
downloadtbdiff-fb9bdefbbbdbd8fef01278b7c3d9c1592998f6d1.tar.gz
Merge branch 'baserock/ps/show-running-and-default'
Reviewed-by: Pedro Alvarez Reviewed-by: Sam Thursfield
-rwxr-xr-xsystem-version-manager/system-version-manager8
1 files changed, 7 insertions, 1 deletions
diff --git a/system-version-manager/system-version-manager b/system-version-manager/system-version-manager
index cdf453b..dcd7b80 100755
--- a/system-version-manager/system-version-manager
+++ b/system-version-manager/system-version-manager
@@ -180,8 +180,14 @@ class SystemVersionManager(object):
self._atomic_symlink_update(default, default_path)
def cmd_list(self):
+ default_system = self._get_default()
for system in self._get_systems():
- print system
+ output = system
+ if system == self.current_system:
+ output += " (running)"
+ if system == default_system:
+ output += " (default)"
+ print output
def cmd_get_default(self):
print self._get_default()