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 24a221eb1a..b2316b12b8 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -521,8 +521,12 @@ def OEOuthashBasic(path, sigfile, task, d):
521 add_perm(stat.S_IXOTH, 'x') 521 add_perm(stat.S_IXOTH, 'x')
522 522
523 if include_owners: 523 if include_owners:
524 update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name) 524 try:
525 update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name) 525 update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name)
526 update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name)
527 except KeyError:
528 bb.warn("KeyError in %s" % path)
529 raise
526 530
527 update_hash(" ") 531 update_hash(" ")
528 if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode): 532 if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode):