~yuningdodo/usb-creator/usb-creator.lp1424915-check-for-iso9660

« back to all changes in this revision

Viewing changes to bin/usb-creator-helper

  • Committer: Martin Pitt
  • Date: 2014-06-16 09:26:40 UTC
  • Revision ID: martin.pitt@ubuntu.com-20140616092640-21362es69krpiknb
* Use "zero" erase type instead of the invalid "". (LP: #1294877)
* Bump Standards-Version to 3.9.5, no changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
        else:
237
237
            # Create a new partition table and a FAT partition.
238
238
            # Is this correct call to create partition table ?!
239
 
            block.call_format_sync('dos', GLib.Variant('a{sv}', {'erase': GLib.Variant('s', '')}), None)
 
239
            block.call_format_sync('dos', GLib.Variant('a{sv}', {'erase': GLib.Variant('s', 'zero')}), None)
240
240
            size = block.get_cached_property('Size').get_uint64()
241
241
            table = dev.get_partition_table()
242
242
            partition = table.call_create_partition_sync(0, size, '0x0c', '', no_options, None)