summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/sstate.bbclass15
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 8b48ab465f..be5f19b33e 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -1081,12 +1081,15 @@ python sstate_eventhandler2() {
1081 with open(i, "r") as f: 1081 with open(i, "r") as f:
1082 lines = f.readlines() 1082 lines = f.readlines()
1083 for l in lines: 1083 for l in lines:
1084 (stamp, manifest, workdir) = l.split() 1084 try:
1085 if stamp not in stamps and stamp not in preservestamps and stamp in machineindex: 1085 (stamp, manifest, workdir) = l.split()
1086 toremove.append(l) 1086 if stamp not in stamps and stamp not in preservestamps and stamp in machineindex:
1087 if stamp not in seen: 1087 toremove.append(l)
1088 bb.debug(2, "Stamp %s is not reachable, removing related manifests" % stamp) 1088 if stamp not in seen:
1089 seen.append(stamp) 1089 bb.debug(2, "Stamp %s is not reachable, removing related manifests" % stamp)
1090 seen.append(stamp)
1091 except ValueError:
1092 bb.fatal("Invalid line '%s' in sstate manifest '%s'" % (l, i))
1090 1093
1091 if toremove: 1094 if toremove:
1092 msg = "Removing %d recipes from the %s sysroot" % (len(toremove), a) 1095 msg = "Removing %d recipes from the %s sysroot" % (len(toremove), a)