summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-18 21:50:02 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-18 21:50:02 +0000
commit3c06b6dbe3923c1eb6943b8fbae65beab2434757 (patch)
treeb655970f333f76ccb7188e279d18d18a332573ce
parent01b628f814d0a9bc3bc5bf0854410285216c4aed (diff)
downloadportage-3c06b6dbe3923c1eb6943b8fbae65beab2434757.tar.gz
portage-3c06b6dbe3923c1eb6943b8fbae65beab2434757.tar.bz2
portage-3c06b6dbe3923c1eb6943b8fbae65beab2434757.zip
Ensure a sane umask for repoman.
svn path=/main/trunk/; revision=3919
-rwxr-xr-xbin/repoman3
1 files changed, 2 insertions, 1 deletions
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 \