summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/sstatesig.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 0e17ad6f5b..4325b66a9e 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -541,8 +541,12 @@ def OEOuthashBasic(path, sigfile, task, d):
541 add_perm(stat.S_IXOTH, 'x') 541 add_perm(stat.S_IXOTH, 'x')
542 542
543 if include_owners: 543 if include_owners:
544 update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name) 544 try:
545 update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name) 545 update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name)
546 update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name)
547 except KeyError:
548 bb.warn("KeyError in %s" % path)
549 raise
546 550
547 update_hash(" ") 551 update_hash(" ")
548 if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode): 552 if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode):