diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-07 11:23:40 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:00 +0100 |
commit | 297438e965053b2eb56cc8ef3e59465642f10a24 (patch) | |
tree | 74bd5fc54674b8cce870b35bd9e22d93eb00dcb6 /meta/classes/sanity.bbclass | |
parent | c77e7b86aa732e9acfa6409108756be38a3ca3ae (diff) | |
download | poky-297438e965053b2eb56cc8ef3e59465642f10a24.tar.gz |
classes/lib: Convert to use python3 octal syntax
The syntax for octal values changed in python3, adapt to it.
(From OE-Core rev: 737a095fcde773a36e0fee1f27b74aaa88062386)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r-- | meta/classes/sanity.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index a392bc29d1..addeab66c5 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -841,8 +841,8 @@ def check_sanity_everybuild(status, d): | |||
841 | 841 | ||
842 | check_supported_distro(d) | 842 | check_supported_distro(d) |
843 | 843 | ||
844 | omask = os.umask(022) | 844 | omask = os.umask(0o022) |
845 | if omask & 0755: | 845 | if omask & 0o755: |
846 | status.addresult("Please use a umask which allows a+rx and u+rwx\n") | 846 | status.addresult("Please use a umask which allows a+rx and u+rwx\n") |
847 | os.umask(omask) | 847 | os.umask(omask) |
848 | 848 | ||