bitbake/fetch2: Remove hardcoded file removal and use clean method
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 May 2012 07:38:13 +0000 (07:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 May 2012 06:49:31 +0000 (07:49 +0100)
commit9ad1cebe2220b41da2141cdb3f0a403abb46d77c
tree72343c3d6560fee90e8a27afc36a5dd7a1d79913
parentf8bf4499549f978ce7c93bc088a66f74cd751e2c
bitbake/fetch2: Remove hardcoded file removal and use clean method

Under certain circumstances, bitbake could remove files which were
outside its control since it unconditionally removes ud.localpath.
In the file:// case this can point at external paths.

This patch converts it to use the clean() method which will remove
files when its safe to do so but not in the file:// case since the
file:// handler has an empty clean method. This means bitbake no
longer removes files outside its control and is generally much safer.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py