]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
Fix umask values (python3 compat)
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 17 Jan 2021 09:32:00 +0000 (10:32 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 17 Jan 2021 09:32:00 +0000 (10:32 +0100)
bin/pfa-from-incoming
bin/pfa-genindex
bin/pfa-mvpkg
bin/pfa-signpkg

index 450fc8466f37020deac3c6189287be8fb95ae685..1696bf63c934d4e762882865d18c1495543cd2ae 100755 (executable)
@@ -13,7 +13,7 @@ from baseftptree import BaseFtpTree, BasePkg
 from ftptree import FtpTree, Pkg
 import ftpio
 
-os.umask(022)
+os.umask(0o022)
 
 def rm(file):
     os.remove(file)
index feef17341b5033f55c0abb77592df15c349fd9a1..6fcc13c35befe6bee2b8b419317018644bd05285 100755 (executable)
@@ -86,7 +86,7 @@ for tree in trees:
 
 home = os.environ['HOME']
 
-os.umask(022)
+os.umask(0o022)
 os.nice(19)
 
 if do_poldek:
index b12779c49d84960998e8a6d1c76f72f00c06b96f..71e4c61821b83916e33dd8619f58f3643ee321bd 100755 (executable)
@@ -11,7 +11,7 @@ import ftpio
 from mailer import Message
 from config import archived_trees, logs_list
 
-os.umask(022)
+os.umask(0o022)
 
 nocheckbuild = False
 if len(sys.argv) > 4 and sys.argv[1] == '-nb':
index 796b39493647d491ccc4bc6ac1a9804feda36e9f..044ffe36223c4949573718495320aa0c7169522a 100755 (executable)
@@ -13,7 +13,7 @@ import ftpio
 from config import sign_key
 from sign import is_signed, signpkgs
 
-os.umask(022)
+os.umask(0o022)
 
 try:
     opts, args = getopt.getopt(sys.argv[1:], '')
This page took 0.107973 seconds and 4 git commands to generate.