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