aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-06-03 15:59:36 +0100
committerJoshua Lock <joshua.g.lock@intel.com>2016-07-12 11:42:35 +0100
commit930469271d89e51d83717c6874db2106f652f5ec (patch)
tree2603c23db11df79ceea3595d939d43b06443cb33
parentedf0a04d8dce607654d5ac44129b7183b52ba141 (diff)
downloadmeta-swupd-930469271d89e51d83717c6874db2106f652f5ec.tar.gz
meta-swupd-930469271d89e51d83717c6874db2106f652f5ec.tar.bz2
meta-swupd-930469271d89e51d83717c6874db2106f652f5ec.zip
swupd-image: fix swupd_replace_hardlinks() for python3
Dictionaries don't have an iteritems() method in Python 3, use the items() method instead. Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
-rw-r--r--classes/swupd-image.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/swupd-image.bbclass b/classes/swupd-image.bbclass
index 9bb6de4..198b1c2 100644
--- a/classes/swupd-image.bbclass
+++ b/classes/swupd-image.bbclass
@@ -543,7 +543,7 @@ python swupd_replace_hardlinks () {
if stat.S_ISREG(s.st_mode):
inodes.setdefault(s.st_ino, []).append(path)
- for inode, paths in inodes.iteritems():
+ for inode, paths in inodes.items():
if len(paths) > 1:
paths.sort()
bb.debug(3, 'Removing hardlinks: %s' % ' = '.join(paths))