From patchwork Mon May 2 08:04:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattias Backman X-Patchwork-Id: 1326 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:50:55 -0000 Delivered-To: patches@linaro.org Received: by 10.224.2.73 with SMTP id 9cs246750qai; Mon, 2 May 2011 01:04:15 -0700 (PDT) Received: by 10.227.11.146 with SMTP id t18mr3693368wbt.104.1304323454010; Mon, 02 May 2011 01:04:14 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id y34si13924129wby.146.2011.05.02.01.04.13; Mon, 02 May 2011 01:04:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QGo72-00055W-Tn for ; Mon, 02 May 2011 08:04:12 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id DAE5F2E8134 for ; Mon, 2 May 2011 08:04:12 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: linaro-image-tools X-Launchpad-Branch: ~linaro-image-tools/linaro-image-tools/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 334 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Mon, 02 May 2011 08:04:12 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="12915"; Instance="initZopeless config overlay" X-Launchpad-Hash: 2fc3693f2e3c24730bd7c282a589b980575f172a 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 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 === 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)