[meta-freescale] [meta-fsl-arm][PATCH] fsl-eula-unpack: Avoid unbound local exception.

Alex Gonzalez alex at lindusembedded.com
Tue Dec 4 02:54:54 PST 2012


I tested on the imx53 QSB.
Alex

On Tue, Dec 4, 2012 at 11:41 AM, Daiane Angolini
<daiane.angolini at freescale.com> wrote:
> On 12/04/2012 08:22 AM, alex at lindusembedded.com wrote:
>>
>> From: Alex Gonzalez <alex at lindusembedded.com>
>>
>> This commit fixes an unbound local exception caused by save_cwd not
>> being defined when fsl-eula is not true.
>> ---
>
> Thanks a lot for the patch.
>
> Which board did you test?
> (I will test for another one)
>
> Daiane
>
>>   classes/fsl-eula-unpack.bbclass |    1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/classes/fsl-eula-unpack.bbclass
>> b/classes/fsl-eula-unpack.bbclass
>> index 7a6a554..6660a88 100644
>> --- a/classes/fsl-eula-unpack.bbclass
>> +++ b/classes/fsl-eula-unpack.bbclass
>> @@ -18,6 +18,7 @@ python fsl_bin_do_unpack() {
>>       fetcher = bb.fetch2.Fetch(src_uri, localdata)
>>
>>       for url in fetcher.ud.values():
>> +        save_cwd = os.getcwd()
>>           # Check for supported fetchers
>>           if url.type in ['http', 'https', 'ftp', 'file']:
>>               if url.parm.get('fsl-eula', False):
>> _______________________________________________
>> meta-freescale mailing list
>> meta-freescale at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-freescale
>>
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



More information about the meta-freescale mailing list