[Bug 400522] [NEW] usb-imagewriter fails on .img filename including parentheses

fewyun scott at fujan.name
Fri Jul 17 05:18:53 UTC 2009


Public bug reported:

Binary package hint: usb-imagewriter

The imagewriter gui would hang every time that I tried to write a file
called ubuntu-9.04-netbook-remix-i386(3).img, but succeeded when I
renamed that file to ubuntu-9.04-netbook-remix-i386.img. So, the (3)
seems to be causing a parsing issue, specifically:

fewyun at home:~$ sudo imagewriter 
0
Traceback (most recent call last):
  File "/usr/lib/imagewriter/imagewriter.py", line 112, in do_write
    self.raw_write(source, target)
  File "/usr/lib/imagewriter/imagewriter.py", line 150, in raw_write
    src_size = float(data.stdout.readline().split()[4])*1.0
IndexError: list index out of range

This seems related to the following bug for filenames with spaces [
https://bugs.launchpad.net/ubuntu/+source/usb-imagewriter/+bug/366607 ]
for which a fix has already been released. Maybe the filename parsing
needs a full overhaul..

This was tested on a fully updated ubuntu 9.04 install.

** Affects: usb-imagewriter (Ubuntu)
     Importance: Undecided
         Status: New

-- 
usb-imagewriter fails on .img filename including parentheses
https://bugs.launchpad.net/bugs/400522
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list