summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/sstate.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index a689f7f677..53dcfc8274 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -703,6 +703,10 @@ def sstate_package(ss, d):
703 os.utime(siginfo, None) 703 os.utime(siginfo, None)
704 except PermissionError: 704 except PermissionError:
705 pass 705 pass
706 except OSError as e:
707 # Handle read-only file systems gracefully
708 if e.errno != errno.EROFS:
709 raise e
706 710
707 return 711 return
708 712
@@ -1141,6 +1145,10 @@ python sstate_eventhandler() {
1141 os.utime(siginfo, None) 1145 os.utime(siginfo, None)
1142 except PermissionError: 1146 except PermissionError:
1143 pass 1147 pass
1148 except OSError as e:
1149 # Handle read-only file systems gracefully
1150 if e.errno != errno.EROFS:
1151 raise e
1144 1152
1145} 1153}
1146 1154