Re: [OE-core] [PATCH] SDK: trap any IO errors in the relocate script

2012-09-28 Thread Richard Purdie
On Fri, 2012-09-28 at 09:50 +0300, Laurentiu Palcu wrote: > > On 09/27/2012 06:49 PM, Saul Wold wrote: > > On 09/25/2012 09:35 AM, Laurentiu Palcu wrote: > > > > BTW: in the future it's good to say the "filename: " > This is what I usually use when I change single files. However, > sometimes (and

Re: [OE-core] [PATCH] SDK: trap any IO errors in the relocate script

2012-09-27 Thread Laurentiu Palcu
On 09/27/2012 06:49 PM, Saul Wold wrote: > On 09/25/2012 09:35 AM, Laurentiu Palcu wrote: > > BTW: in the future it's good to say the "filename: " This is what I usually use when I change single files. However, sometimes (and I know this particular patch is not the case), I change multiple files

Re: [OE-core] [PATCH] SDK: trap any IO errors in the relocate script

2012-09-27 Thread Saul Wold
On 09/25/2012 09:35 AM, Laurentiu Palcu wrote: BTW: in the future it's good to say the "filename: " So this would be "relocate_sdk.py: " If the files being relocated are already used by other processes the relocate script will fail with a traceback. This patch will trap any IO errors when o

[OE-core] [PATCH] SDK: trap any IO errors in the relocate script

2012-09-25 Thread Laurentiu Palcu
If the files being relocated are already used by other processes the relocate script will fail with a traceback. This patch will trap any IO errors when opening such a file and gracefully report them to the user. Also change the exit code from 1 to -1 for a better adt-installer user experience (li