From 70c643f8de1b93ff7d2c86ba7e26b5ad77ff16c0 Mon Sep 17 00:00:00 2001 From: Shan Sikdar Date: Sun, 5 Apr 2020 10:42:31 -0400 Subject: [PATCH] change to use 0o for octal numbers w/ file permissons --- util/vm/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/vm/build.py b/util/vm/build.py index 9fa1f77..2f90c5d 100755 --- a/util/vm/build.py +++ b/util/vm/build.py @@ -179,7 +179,7 @@ def findiso( flavor ): url = isoURLs[ flavor ] name = path.basename( url ) iso = path.join( VMImageDir, name ) - if not path.exists( iso ) or ( stat( iso )[ ST_MODE ] & 0777 != 0444 ): + if not path.exists( iso ) or ( stat( iso )[ ST_MODE ] & 0o777 != 0o444 ): log( '* Retrieving', url ) run( 'curl -C - -o %s %s' % ( iso, url ) ) # Make sure the file header/type is something reasonable like