change to use 0o for octal numbers w/ file permissons
This commit is contained in:
+1
-1
@@ -179,7 +179,7 @@ def findiso( flavor ):
|
|||||||
url = isoURLs[ flavor ]
|
url = isoURLs[ flavor ]
|
||||||
name = path.basename( url )
|
name = path.basename( url )
|
||||||
iso = path.join( VMImageDir, name )
|
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 )
|
log( '* Retrieving', url )
|
||||||
run( 'curl -C - -o %s %s' % ( iso, url ) )
|
run( 'curl -C - -o %s %s' % ( iso, url ) )
|
||||||
# Make sure the file header/type is something reasonable like
|
# Make sure the file header/type is something reasonable like
|
||||||
|
|||||||
Reference in New Issue
Block a user