/[smecontribs]/rpms/plague/contribs8/plague-0.4.4.1-update-builders.patch
ViewVC logotype

Contents of /rpms/plague/contribs8/plague-0.4.4.1-update-builders.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Mon Sep 8 13:40:51 2008 UTC (16 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Import of plague-0.4.5.3-1.el5.src.rpm

1 diff -Nur plague-0.4.4.1-orig/client/client.py plague-0.4.4.1/client/client.py
2 --- plague-0.4.4.1-orig/client/client.py 2006-02-26 17:47:53.000000000 +0100
3 +++ plague-0.4.4.1/client/client.py 2007-12-26 15:45:00.000000000 +0100
4 @@ -340,7 +340,10 @@
5
6 def _cmd_update_builders(self, args):
7 (e, msg, builder_list) = self._server.update_builders()
8 - self._print_builders(builder_list)
9 + if e==0:
10 + self._print_builders(builder_list)
11 + else:
12 + print msg
13
14 def _cmd_list_builders(self, args):
15 (e, msg, builder_list) = self._server.list_builders()
16 @@ -410,7 +413,7 @@
17 try:
18 cfg_file = os.environ['PLAGUE_CLIENT_CONFIG']
19 if not os.path.exists(cfg_file):
20 - print "Config file specified in PLAUGE_CLIENT_CONFIG" \
21 + print "Config file specified in PLAGUE_CLIENT_CONFIG" \
22 " environment variable (%s) did not exist." % cfg_file
23 sys.exit(1)
24 except KeyError:
25 diff -Nur plague-0.4.4.1-orig/server/UserInterface.py plague-0.4.4.1/server/UserInterface.py
26 --- plague-0.4.4.1-orig/server/UserInterface.py 2005-11-28 18:46:21.000000000 +0100
27 +++ plague-0.4.4.1/server/UserInterface.py 2007-12-26 15:44:34.000000000 +0100
28 @@ -585,7 +585,7 @@
29 def update_builders(self):
30 user = AuthedXMLRPCServer.get_authinfo()
31 if not user or not user.server_admin:
32 - return (-1, "Insufficient privileges.")
33 + return (-1, "Insufficient privileges.",[])
34 return UserInterface.update_builders(self)
35
36

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed