Ensure a sane umask for repoman.
authorZac Medico <zmedico@gentoo.org>
Tue, 18 Jul 2006 21:50:02 +0000 (21:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 18 Jul 2006 21:50:02 +0000 (21:50 -0000)
svn path=/main/trunk/; revision=3919

bin/repoman

index bcd0b4b94311fa78b551ec2280e15bf7ac9d3815..1af6981cbac98766f0d1cb9673dc652d30d61a11 100755 (executable)
@@ -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 \