Jose Quaresma
33ba016f4c
sstate.bbclass: fix error handling when sstate mirrors is ro
...
The commit dd555537fc
'sstate.bbclass: fix errors about read-only sstate mirrors'
adds an additional exception handler to silently mask read
only rootfs errors thrown during the touch.
The exception handler checks the error type with the python module errno
but this module needs to be imported as it don't exist.
Example of the error:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:sstate_task_postfunc(d)
0003:
File: '/home/builder/src/base/poky/meta/classes/sstate.bbclass', lineno: 778, function: sstate_task_postfunc
0774:
0775: omask = os.umask(0o002)
0776: if omask != 0o002:
0777: bb.note("Using umask 0o002 (not %0o) for sstate packaging" % omask)
*** 0778: sstate_package(shared_state, d)
0779: os.umask(omask)
0780:
0781: sstateinst = d.getVar("SSTATE_INSTDIR")
0782: d.setVar('SSTATE_FIXMEDIR', shared_state['fixmedir'])
File: '/home/builder/src/base/poky/meta/classes/sstate.bbclass', lineno: 708, function: sstate_package
0704: except PermissionError:
0705: pass
0706: except OSError as e:
0707: # Handle read-only file systems gracefully
*** 0708: if e.errno != errno.EROFS:
0709: raise e
0710:
0711: return
0712:
Exception: NameError: name 'errno' is not defined
(From OE-Core rev: 15f30ad144fbe25e9a5e71bc7e42e746d2039992)
Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com >
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org >
2021-08-12 06:26:15 +01:00
..
2018-09-13 07:42:28 +01:00
2021-07-28 23:47:00 +01:00
2014-02-28 14:01:16 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2018-01-26 13:09:09 +00:00
2021-08-02 15:44:10 +01:00
2016-12-16 10:23:23 +00:00
2021-07-10 22:42:22 +01:00
2021-01-20 00:45:05 +00:00
2019-04-12 09:29:06 +01:00
2019-12-29 09:27:16 +00:00
2021-08-02 15:44:10 +01:00
2021-05-18 23:52:54 +01:00
2021-08-02 15:44:10 +01:00
2016-12-16 10:23:23 +00:00
2017-06-28 20:55:08 +01:00
2021-07-13 14:27:53 +01:00
2019-01-11 10:39:09 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2020-02-14 13:07:23 +00:00
2021-08-12 06:26:15 +01:00
2021-08-02 15:44:10 +01:00
2020-06-30 23:03:02 +01:00
2021-08-02 15:44:10 +01:00
2021-03-20 18:54:56 +00:00
2020-10-08 08:08:32 +01:00
2021-08-04 20:45:41 +01:00
2019-11-21 23:08:19 +00:00
2021-08-05 08:53:41 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2018-08-20 17:38:22 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2020-06-12 08:25:05 +01:00
2021-08-02 15:44:10 +01:00
2017-01-09 13:39:11 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2016-09-14 22:22:08 +01:00
2021-08-02 15:44:10 +01:00
2020-12-15 22:51:56 +00:00
2019-09-19 10:54:32 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-04 20:45:41 +01:00
2020-09-20 12:48:11 +01:00
2018-12-08 17:17:01 +00:00
2021-08-02 15:44:10 +01:00
2021-08-04 20:45:41 +01:00
2021-08-04 20:45:41 +01:00
2018-08-16 09:49:39 +01:00
2021-08-02 15:44:10 +01:00
2021-08-04 20:45:41 +01:00
2021-08-04 20:45:41 +01:00
2018-10-08 14:13:54 +01:00
2020-09-17 09:47:45 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-07-28 23:47:00 +01:00
2018-11-23 23:35:19 +00:00
2021-08-04 10:38:26 +01:00
2021-08-02 15:44:10 +01:00
2020-03-10 23:20:33 +00:00
2013-01-07 11:09:42 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-04 20:45:41 +01:00
2021-08-02 15:44:10 +01:00
2018-11-23 23:35:19 +00:00
2021-06-17 13:42:31 +01:00
2019-09-19 10:54:32 +01:00
2018-02-24 10:31:48 +00:00
2021-08-04 20:45:41 +01:00
2019-03-03 15:38:13 +00:00
2021-05-14 07:57:27 +01:00
2021-08-02 15:44:10 +01:00
2014-07-03 17:41:16 +01:00
2021-03-14 16:33:59 +00:00
2016-12-16 10:23:23 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2018-09-04 11:03:56 +01:00
2018-02-24 10:31:44 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2020-08-26 21:56:41 +01:00
2021-08-02 15:44:10 +01:00
2016-12-16 10:23:23 +00:00
2021-08-12 06:26:15 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-06-26 11:27:39 +01:00
2021-08-02 15:44:10 +01:00
2020-08-26 21:56:41 +01:00
2021-08-02 15:44:10 +01:00
2021-08-06 09:25:25 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2019-01-11 10:39:09 +00:00
2012-07-26 14:56:20 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:11 +01:00
2021-08-02 15:44:11 +01:00
2012-09-02 05:52:06 -07:00
2016-12-16 10:23:23 +00:00
2013-06-14 12:55:47 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2020-10-30 13:22:49 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2017-04-05 23:22:11 +01:00
2017-02-09 10:52:03 +00:00
2020-06-15 14:53:46 +01:00
2016-02-02 14:44:16 +00:00
2021-07-10 22:43:41 +01:00
2020-02-21 17:48:09 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-02-18 23:40:01 +00:00
2021-01-13 23:13:45 +00:00
2021-08-02 15:44:10 +01:00
2021-08-12 06:26:15 +01:00
2020-07-27 10:37:57 +01:00
2021-08-02 15:44:10 +01:00
2020-11-16 14:27:46 +00:00
2018-07-26 13:16:40 +01:00
2016-12-16 10:23:23 +00:00
2021-08-02 15:44:10 +01:00
2020-06-17 11:10:28 +01:00
2018-11-23 23:35:19 +00:00
2020-10-17 23:22:19 +01:00
2021-08-12 06:26:15 +01:00
2021-08-02 15:44:10 +01:00
2019-07-26 08:41:38 +01:00
2019-05-16 16:35:12 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2019-04-03 14:50:13 +01:00
2020-09-21 23:54:39 +01:00
2021-08-02 15:44:10 +01:00
2018-11-21 11:54:14 +00:00
2021-08-02 15:44:10 +01:00
2020-02-02 16:57:21 +00:00
2016-09-23 14:56:39 +01:00
2021-08-02 15:44:10 +01:00
2016-12-16 10:23:23 +00:00
2021-06-07 23:00:22 +01:00
2021-08-04 20:45:41 +01:00
2021-08-02 15:44:10 +01:00
2020-10-13 09:42:08 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2016-12-17 09:57:04 +00:00
2020-11-11 10:08:12 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2020-05-05 13:19:55 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00