Skip to contentSkip to conversation

identity.bbclass: Enforce octal literal representation in os.chmod

PATCH In review Adrian Dudau 2 participants 2 messages Sep 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 identity.bbclass: Enforce octal literal representation in os.chmod

Python 3 changed to the explicit representation and throws errors otherwise.

---
 meta-openstack/classes/monitor.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-openstack/classes/monitor.bbclass +2 -1
index 83aaea2..a959f09 100644
@@ -19,7 +19,8 @@ def copy_check_files(d, check_var_name, src, dest):
         for check in mon_checks.split():
             if os.path.exists(src + "/" + check):
                 shutil.copy(src + "/" + check, dest)
-                os.chmod(dest + "/" + check, 0755)
+                os.chmod(dest + "/" + check, 0o755)
+
 
 python do_monitor_install() {
     import shutil
Signature · 1 line
1.9.1
#1 lore raw

merged.

Bruce

Quoted 32 lines · Adrian Dudau

Python 3 changed to the explicit representation and throws errors otherwise.

---
 meta-openstack/classes/monitor.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-openstack/classes/monitor.bbclass +2 -2
index 83aaea2..a959f09 100644
@@ -19,7 +19,8 @@ def copy_check_files(d, check_var_name, src, dest):
         for check in mon_checks.split():
             if os.path.exists(src + "/" + check):
                 shutil.copy(src + "/" + check, dest)
-                os.chmod(dest + "/" + check, 0755)
+                os.chmod(dest + "/" + check, 0o755)
+
 
 python do_monitor_install() {
     import shutil
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"