[OE-core] [PATCH] buildhistory.bbclass: add pkg_pre/postinst/rm contents

Paul Eggleton paul.eggleton at linux.intel.com
Mon May 28 13:19:26 UTC 2012


On Sunday 27 May 2012 20:29:42 Andreas Müller wrote:
> A use-case would have been [1].
> 
> The following tests were performed:
> * image from scratch with old buildhistory contents
> * image from scratch with buildhistory contents from scratch
> * decrement a PR for a test recipe and check if the message
>   'ERROR: Package version for xy went backwards' is displayed.
> 
> [1] http://patches.openembedded.org/patch/28841/

FWIW I hadn't forgotten about this feature request, although I hadn't got 
around to implementing it yet.

I haven't tested your patch but if I read it correctly you are writing the 
scripts out underneath the "value =" lines in the package data file. My concern 
with doing this is that it makes those files more difficult to parse. I had 
thought that the way to do it would be to write these scripts to separate files 
(e.g. latest.pkg_prerm, latest.pkg_postrm etc.). Would that be OK?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the Openembedded-core mailing list