From 297438e965053b2eb56cc8ef3e59465642f10a24 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 7 May 2013 11:23:40 +0100 Subject: 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 --- meta/classes/package_deb.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/classes/package_deb.bbclass') diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index e1d05a74c2..bb5220ed00 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass @@ -117,7 +117,7 @@ python do_package_deb () { controldir = os.path.join(root, 'DEBIAN') bb.utils.mkdirhier(controldir) - os.chmod(controldir, 0755) + os.chmod(controldir, 0o755) try: import codecs ctrlfile = codecs.open(os.path.join(controldir, 'control'), 'w', 'utf-8') @@ -293,7 +293,7 @@ python do_package_deb () { scriptfile.write(scriptvar[pos:]) scriptfile.write('\n') scriptfile.close() - os.chmod(os.path.join(controldir, script), 0755) + os.chmod(os.path.join(controldir, script), 0o755) conffiles_str = ' '.join(get_conffiles(pkg, d)) if conffiles_str: -- cgit v1.2.3-54-g00ecf