~usb-creator-hackers/usb-creator/trunk

« back to all changes in this revision

Viewing changes to usbcreator/backends/udisks/backend.py

  • Committer: Brian Murray
  • Date: 2014-12-18 22:20:02 UTC
  • Revision ID: brian@canonical.com-20141218222002-j7848bql2urf5yst
udisks/backend.py: fix some calls to mount_sync that were missed in the
port to the UDisks2 API. Thanks to Marc Culler for the patch.
(LP: #1279987)

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
        mount_points = fs.get_cached_property('MountPoints').get_bytestring_array()
111
111
        if len(mount_points) == 0:
112
112
            try:
113
 
                mount = fs.mount_sync(no_options, None)
 
113
                mount = fs.call_mount_sync(no_options, None)
114
114
            except GLib.GError as e:
115
115
                logging.exception('Could not mount the device: %s' % e.message)
116
116
        else:
342
342
            fs = obj.get_filesystem()
343
343
            mount_points = fs.get_cached_property('MountPoints').get_bytestring_array()
344
344
            if len(mount_points) == 0:
345
 
                target_path = fs.mount_sync(no_options, None)
 
345
                target_path = fs.call_mount_sync(no_options, None)
346
346
            else:
347
347
                target_path = mount_points[0]
348
348
            self.helper.RemountRW(dev)