summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/sstatesig.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index f98543cc46..aeceb100d7 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -552,9 +552,11 @@ def OEOuthashBasic(path, sigfile, task, d):
552 try: 552 try:
553 update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name) 553 update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name)
554 update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name) 554 update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name)
555 except KeyError: 555 except KeyError as e:
556 bb.warn("KeyError in %s" % path) 556 bb.warn("KeyError in %s" % path)
557 raise 557 msg = ("KeyError: %s\nPath %s is owned by uid %d, gid %d, which doesn't match "
558 "any user/group on target. This may be due to host contamination." % (e, path, s.st_uid, s.st_gid))
559 raise Exception(msg).with_traceback(e.__traceback__)
558 560
559 if include_timestamps: 561 if include_timestamps:
560 update_hash(" %10d" % s.st_mtime) 562 update_hash(" %10d" % s.st_mtime)