Public bug reported:

Binary package hint: usb-creator

Specifying -i or --iso via commandline and passing a iso filename does
not work if the executable bit is not set on the file.

This occurs because 'os.path.exists' fails if the executable bit is not
set on the file. The following fixes that:

--- backend.py  2010-05-19 15:51:37.927084000 -0230
+++ /usr/share/pyshared/usbcreator/backends/base/backend.py     2010-07-22 
10:49:33.129616766 -0230
@@ -21,7 +21,8 @@
     def add_image(self, filename):
         logging.debug('Backend told to add: %s' % filename)
         filename = os.path.abspath(os.path.expanduser(filename))
-        if not os.path.exists(filename):
+        if not os.path.isfile(filename):
+            logging.debug('Missing in action: %s' % filename)
             return
         if filename in self.sources:
             logging.warn('Source already added.')

** Affects: usb-creator (Ubuntu)
     Importance: Medium
     Assignee: Roderick B. Greening (roderick-greening)
         Status: Confirmed

** Changed in: usb-creator (Ubuntu)
   Importance: Undecided => Medium

** Changed in: usb-creator (Ubuntu)
       Status: New => Confirmed

** Changed in: usb-creator (Ubuntu)
     Assignee: (unassigned) => Roderick B. Greening (roderick-greening)

-- 
adding image via commandline does not work correctly
https://bugs.launchpad.net/bugs/608741
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to