diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-03-13 15:15:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-17 13:59:36 +0000 |
commit | 513722d9ca833671caa8e3f106d60ad5a6d740cc (patch) | |
tree | 67e505fb415b4b40cb9772f83cea49be0e049297 /bitbake | |
parent | e665de5500ab1b44fd59dab897c736c62f487ff2 (diff) | |
download | ast2050-yocto-poky-513722d9ca833671caa8e3f106d60ad5a6d740cc.zip ast2050-yocto-poky-513722d9ca833671caa8e3f106d60ad5a6d740cc.tar.gz |
bitbake: toaster: fix target file inode type information
This patches fixes the inode type saved when writing the
target file list information.
(Bitbake rev: 9f34a1c5e94d73cdba1def7059c60211514e054c)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 8f091e8..b5e75d9 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -235,11 +235,11 @@ class ORMWrapper(object): path = d[4].lstrip(".") parent_path = "/".join(path.split("/")[:len(path.split("/")) - 1]) inodetype = Target_File.ITYPE_REGULAR - if permission.startswith('b'): + if d[0].startswith('b'): inodetype = Target_File.ITYPE_BLOCK - if permission.startswith('c'): + if d[0].startswith('c'): inodetype = Target_File.ITYPE_CHARACTER - if permission.startswith('p'): + if d[0].startswith('p'): inodetype = Target_File.ITYPE_FIFO tf_obj = Target_File.objects.create( @@ -286,7 +286,7 @@ class ORMWrapper(object): target = target_obj, path = path, size = size, - inodetype = Target_File.ITYPE_REGULAR, + inodetype = Target_File.ITYPE_SYMLINK, permission = permission, owner = user, group = group, |