Bug 241539

Summary: [PATCH] K3B doesn't handle an error returned by genisoimage
Product: [Applications] k3b Reporter: Kyran Lange <kyran.lange>
Component: Data ProjectAssignee: Michał Małek <michalm>
Status: RESOLVED FIXED    
Severity: normal CC: rivaldi8, trueg
Priority: NOR    
Version: 1.68.0   
Target Milestone: 2.1   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 2.1
Attachments: This patch makes K3B recognise the error and give a more useful message (maybe it should be improved). Originally by the reporter, Àlex Magaz.

Description Kyran Lange 2010-06-12 13:42:17 UTC
Created attachment 47943 [details]
This patch makes K3B recognise the error and give a more useful message (maybe it should be improved). Originally by the reporter, Àlex Magaz.

Version:           1.68.0
OS:                Linux

"genisoimage fails if a file is deleted while it's creating the image. The problem is that K3B doesn't recognize the error, giving the message "mkisofs returned an unknown error (code 2)"

"I've attached a patch to make K3B recognize the error and give a more useful message (maybe it should be improved)."

Originally reported at: 
https://bugs.launchpad.net/ubuntu/+source/k3b/+bug/259778

Reproducible: Always

Steps to Reproduce:
" 1. Run K3B and select "New data project"
   2. Add some files to the project
   3. Click on Burn.
   4. Select "Only create image" option.
   5. Click Start.
   6. Then, when the progress bar starts filling, delete some of the files added to the project.

If the file is deleted before it's added to the image, genisoimage fails."

Actual Results:  
"mkisofs returned an unknown error (code 2)"

Expected Results:  
A more helpful error message
Comment 1 Michał Małek 2010-06-12 17:49:28 UTC
Hi, thanks for the patch. Currently we're in string freeze, so I will apply it after 2.0 release (which, hopefully, is just around the corner).
Comment 2 Michał Małek 2010-06-20 22:52:22 UTC
SVN commit 1140487 by mmalek:

Better error message when some files are removed during image creation. Patch by Àlex Magaz and Kyran Lange. Thanks!
BUG: 241539
CCMAIL: kyran.lange@gmail.com

 M  +5 -0      k3bmkisofshandler.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1140487