diff options
author | Jan Rękorajski | 2021-01-17 09:32:00 (GMT) |
---|---|---|
committer | Jan Rękorajski | 2021-01-17 09:32:00 (GMT) |
commit | ce26983c3178594ce839bfb4f5905119f8b110c5 (patch) | |
tree | c6c765119ef8ae7db08c38df34ddbe035fcb0143 | |
parent | 11c36e0f8d3d0c89bffd65eab0370c4b5169e2bf (diff) | |
download | pld-ftp-admin-ce26983c3178594ce839bfb4f5905119f8b110c5.zip pld-ftp-admin-ce26983c3178594ce839bfb4f5905119f8b110c5.tar.gz |
Fix umask values (python3 compat)
-rwxr-xr-x | bin/pfa-from-incoming | 2 | ||||
-rwxr-xr-x | bin/pfa-genindex | 2 | ||||
-rwxr-xr-x | bin/pfa-mvpkg | 2 | ||||
-rwxr-xr-x | bin/pfa-signpkg | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/bin/pfa-from-incoming b/bin/pfa-from-incoming index 450fc84..1696bf6 100755 --- a/bin/pfa-from-incoming +++ b/bin/pfa-from-incoming @@ -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) diff --git a/bin/pfa-genindex b/bin/pfa-genindex index feef173..6fcc13c 100755 --- a/bin/pfa-genindex +++ b/bin/pfa-genindex @@ -86,7 +86,7 @@ for tree in trees: home = os.environ['HOME'] -os.umask(022) +os.umask(0o022) os.nice(19) if do_poldek: diff --git a/bin/pfa-mvpkg b/bin/pfa-mvpkg index b12779c..71e4c61 100755 --- a/bin/pfa-mvpkg +++ b/bin/pfa-mvpkg @@ -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': diff --git a/bin/pfa-signpkg b/bin/pfa-signpkg index 796b394..044ffe3 100755 --- a/bin/pfa-signpkg +++ b/bin/pfa-signpkg @@ -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:], '') |