mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
@@ -434,7 +434,7 @@ class GitApplyTree(PatchTree):
|
||||
# change other places which read it back
|
||||
f.write('echo >> $1\n')
|
||||
f.write('echo "%s: $PATCHFILE" >> $1\n' % GitApplyTree.patch_line_prefix)
|
||||
os.chmod(commithook, 0755)
|
||||
os.chmod(commithook, 0o755)
|
||||
shutil.copy2(commithook, applyhook)
|
||||
try:
|
||||
patchfilevar = 'PATCHFILE="%s"' % os.path.basename(patch['file'])
|
||||
@@ -672,7 +672,7 @@ class UserResolver(Resolver):
|
||||
f.write("echo 'Run \"quilt refresh\" when patch is corrected, press CTRL+D to exit.'\n")
|
||||
f.write("echo ''\n")
|
||||
f.write(" ".join(patchcmd) + "\n")
|
||||
os.chmod(rcfile, 0775)
|
||||
os.chmod(rcfile, 0o775)
|
||||
|
||||
self.terminal("bash --rcfile " + rcfile, 'Patch Rejects: Please fix patch rejects manually', self.patchset.d)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user