From: Zac Medico Date: Tue, 18 Jul 2006 21:50:02 +0000 (-0000) Subject: Ensure a sane umask for repoman. X-Git-Tag: v2.1.1~205 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3c06b6dbe3923c1eb6943b8fbae65beab2434757;p=portage.git Ensure a sane umask for repoman. svn path=/main/trunk/; revision=3919 --- diff --git a/bin/repoman b/bin/repoman index bcd0b4b94..1af6981cb 100755 --- a/bin/repoman +++ b/bin/repoman @@ -46,7 +46,8 @@ from fileinput import input from grp import getgrnam from stat import S_ISDIR, ST_CTIME, ST_GID, ST_MTIME - +# A sane umask is needed for files that portage creates. +os.umask(022) trees = portage.create_trees() settings = trees["/"]["porttree"].settings if settings.get("NOCOLOR", None) in ("yes", "true") or \