bitbake: fetch2: Sort file checksums by value, not path
authorTyler Hall <tylerwhall@gmail.com>
Wed, 19 Dec 2012 23:26:50 +0000 (18:26 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Jan 2013 12:50:12 +0000 (12:50 +0000)
commitb0af23be1e09fe16aa7a40d740eee71d22fb25ac
treed990b298cbb60efdd3e860445139324d975e3e58
parente9b9699a48bdbb6255a8608b0b3dda9e0176596b
bitbake: fetch2: Sort file checksums by value, not path

Changing the path to a file could change the task hash even if the file
still has the same checksum. This occurs when the task depends on
multiple files and the sort order of their paths changes. Usually the
sorting is consistent because layers tend to have the same relative
paths, but this should take care of other configuations.

The problem arose when using a .bbappend to add files to a recipe in
another layer. If the layer is located alongside the other layers and
their parent directory is moved, the hash does not change. However,
moving the .bbappend layer outside of the common directory can change
the path sort order and the task hash.

(Bitbake rev: 22bd19d208f0251f5a1f9b98f3cac66181f3fc07)

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py