archiver.bbclass: fix the remove error
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 24 Aug 2012 06:06:59 +0000 (14:06 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Aug 2012 23:02:09 +0000 (16:02 -0700)
commit6d7191a4b6abc28453f01e15ea33dbc299c42416
tree266b978e3a3f5ebe457e9ad5ec512b1398507782
parent3e40711c8b60fe215dda998e765cf5b9e33060d6
archiver.bbclass: fix the remove error

* The "tar-package" is used for saving the "Source" list for rpmbuild,
  there is no such a file when "ARCHIVER_MODE[type] ?= srpm", and there
  would be errors, it hadn't happen before was becuase that the remove
  function didn't work. Let the "rpmbuild --rmsource" to remove the
  Sources, and the remove function will just remove the tar-package file.

* Remove several unwanted "try ... exception" sentences, let the error
  raise rather than ignore them when the error happens.

* Remove several un-needed code.

[YOCTO #2619]

(From OE-Core rev: 6ac3e8be0307ecaea5e92f8bda94f1cd2193a47a)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archiver.bbclass
meta/classes/package_rpm.bbclass