diff mbox

[Branch,~linaro-image-tools/linaro-image-tools/trunk] Rev 334: Print the list of devices sorted alpabetically.

Message ID 20110502080412.5510.60511.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Mattias Backman May 2, 2011, 8:04 a.m. UTC
Merge authors:
  Mattias Backman (mabac)
Related merge proposals:
  https://code.launchpad.net/~mabac/linaro-image-tools/bug-711237-sort-devices/+merge/59349
  proposed by: Mattias Backman (mabac)
  review: Approve - Guilherme Salgado (salgado)
------------------------------------------------------------
revno: 334 [merge]
committer: Mattias Backman <mattias.backman@linaro.org>
branch nick: trunk
timestamp: Mon 2011-05-02 09:52:24 +0200
message:
  Print the list of devices sorted alpabetically.
modified:
  linaro_image_tools/media_create/check_device.py


--
lp:linaro-image-tools
https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk

You are subscribed to branch lp:linaro-image-tools.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'linaro_image_tools/media_create/check_device.py'
--- linaro_image_tools/media_create/check_device.py	2011-03-23 22:25:10 +0000
+++ linaro_image_tools/media_create/check_device.py	2011-04-28 11:08:45 +0000
@@ -70,6 +70,7 @@ 
     bus, udisks = _get_system_bus_and_udisks_iface()
     print '%-16s %-16s %s' % ('Device', 'Mount point', 'Size')
     devices = udisks.get_dbus_method('EnumerateDevices')()
+    devices.sort()
     for path in devices:
         device = bus.get_object("org.freedesktop.UDisks", path)
         device_file =  _get_dbus_property('DeviceFile', device, path)