[meta-virtualization] [meta-cloud-services][PATCH] identity.bbclass: Enforce octal literal representation in os.chmod

Bruce Ashfield bruce.ashfield at gmail.com
Mon Sep 19 13:04:52 PDT 2016


merged.

Bruce

On Mon, Sep 19, 2016 at 4:09 AM, Adrian Dudau <adrian.dudau at enea.com> wrote:

> Python 3 changed to the explicit representation and throws errors
> otherwise.
>
> Signed-off-by: Adrian Dudau <adrian.dudau at enea.com>
> ---
>  meta-openstack/classes/monitor.bbclass | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta-openstack/classes/monitor.bbclass
> b/meta-openstack/classes/monitor.bbclass
> index 83aaea2..a959f09 100644
> --- a/meta-openstack/classes/monitor.bbclass
> +++ b/meta-openstack/classes/monitor.bbclass
> @@ -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
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20160919/72acec46/attachment.html>


More information about the meta-virtualization mailing list