[oe] [PATCH] gitpkgv.bbclass: cache GITPKGV result
Otavio Salvador
otavio at ossystems.com.br
Fri Nov 16 17:28:42 UTC 2012
On Fri, Nov 16, 2012 at 2:19 PM, Enrico Scholz <
enrico.scholz at sigma-chemnitz.de> wrote:
> gitpkgv runs the 'git rev-list | wc -l' several times when processing a
> package using GITPKGV. This takes ages for packages like the linux
> kernel which has a) a large repository and b) lots of subpackages.
>
> This patch caches the result of 'git rev-list' into the sources cache
> directory and uses it on the next run. Because collisions of the sha1
> hash are very unlikely, the git revision is used directly as the key.
>
> [this is a slightly fixed version of classic OE's
> 8c61580bc303911cf77a16eefb661414fee637f4]
>
> Signed-off-by: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
>
I'd prefer to have the hashes cache in same DL_DIR so we don't have another
directory there. It is a file so I see no need for another dir. What do you
think?
--
Otavio Salvador O.S. Systems
E-mail: otavio at ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
More information about the Openembedded-devel
mailing list