diff -Nur plague-0.4.4.1-orig/server/PackageJob.py plague-0.4.4.1/server/PackageJob.py --- plague-0.4.4.1-orig/server/PackageJob.py 2006-03-13 05:10:49.000000000 +0100 +++ plague-0.4.4.1/server/PackageJob.py 2007-11-13 17:54:19.000000000 +0100 @@ -299,7 +299,7 @@ env_args = "%s CVS_RSH='%s'" % (env_args, cvs_rsh) # Checkout the module - cmd = 'cd %s; %s %s co -r %s %s' % (self.checkout_tmpdir, env_args, CVS_CMD, + cmd = 'umask 0022; cd %s; %s %s co -r %s %s' % (self.checkout_tmpdir, env_args, CVS_CMD, self._source, self.package) debugprint("%d: Running %s" % (self.uid, cmd)) s, o = commands.getstatusoutput(cmd) @@ -340,7 +340,7 @@ msg = "Error: could not find checkout directory %s for %s. Sources probably don't exist for this target." % (srpm_dir, self._source) raise PrepError(msg) - cmd = 'cd %s; %s srpm' % (srpm_dir, MAKE_CMD) + cmd = 'umask 0022; cd %s; %s srpm' % (srpm_dir, MAKE_CMD) debugprint("%d: Running %s in %s" % (self.uid, cmd, srpm_dir)) s, o = commands.getstatusoutput(cmd) if s != 0: