summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-03-13 15:15:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-17 13:59:36 +0000
commit513722d9ca833671caa8e3f106d60ad5a6d740cc (patch)
tree67e505fb415b4b40cb9772f83cea49be0e049297 /bitbake
parente665de5500ab1b44fd59dab897c736c62f487ff2 (diff)
downloadpoky-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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 8f091e8990..b5e75d97bb 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -235,11 +235,11 @@ class ORMWrapper(object):
235 path = d[4].lstrip(".") 235 path = d[4].lstrip(".")
236 parent_path = "/".join(path.split("/")[:len(path.split("/")) - 1]) 236 parent_path = "/".join(path.split("/")[:len(path.split("/")) - 1])
237 inodetype = Target_File.ITYPE_REGULAR 237 inodetype = Target_File.ITYPE_REGULAR
238 if permission.startswith('b'): 238 if d[0].startswith('b'):
239 inodetype = Target_File.ITYPE_BLOCK 239 inodetype = Target_File.ITYPE_BLOCK
240 if permission.startswith('c'): 240 if d[0].startswith('c'):
241 inodetype = Target_File.ITYPE_CHARACTER 241 inodetype = Target_File.ITYPE_CHARACTER
242 if permission.startswith('p'): 242 if d[0].startswith('p'):
243 inodetype = Target_File.ITYPE_FIFO 243 inodetype = Target_File.ITYPE_FIFO
244 244
245 tf_obj = Target_File.objects.create( 245 tf_obj = Target_File.objects.create(
@@ -286,7 +286,7 @@ class ORMWrapper(object):
286 target = target_obj, 286 target = target_obj,
287 path = path, 287 path = path,
288 size = size, 288 size = size,
289 inodetype = Target_File.ITYPE_REGULAR, 289 inodetype = Target_File.ITYPE_SYMLINK,
290 permission = permission, 290 permission = permission,
291 owner = user, 291 owner = user,
292 group = group, 292 group = group,