]> code.ossystems Code Review - openembedded-core.git/commit
archiver.bbclass: fix the remove error
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 24 Aug 2012 06:06:59 +0000 (14:06 +0800)
committerSaul Wold <sgw@linux.intel.com>
Tue, 28 Aug 2012 15:03:40 +0000 (08:03 -0700)
commit6ac3e8be0307ecaea5e92f8bda94f1cd2193a47a
tree92e8d3d1a6641fa817070da8c6aaed96b433fc7a
parent731e1171d6c35ed086b36c081f48dba2015319f8
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]

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