[projects/pld-ftp-admin] Fix umask values (python3 compat)

baggins baggins at pld-linux.org
Sun Jan 17 11:46:12 CET 2021


commit ce26983c3178594ce839bfb4f5905119f8b110c5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jan 17 10:32:00 2021 +0100

    Fix umask values (python3 compat)

 bin/pfa-from-incoming | 2 +-
 bin/pfa-genindex      | 2 +-
 bin/pfa-mvpkg         | 2 +-
 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:], '')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/7aec4c36547d10c790a119a1ac203eee13755a6d



More information about the pld-cvs-commit mailing list