Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=f82b51edb5fdd00a8a697ce1d675ab69a3028ca6

commit f82b51edb5fdd00a8a697ce1d675ab69a3028ca6
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Mon Mar 31 23:27:40 2008 +0200

syncpkgd: add a new request_conf() function to distribute repoman.conf across 
build nodes

diff --git a/syncpkgd/syncpkgd.py b/syncpkgd/syncpkgd.py
index 444b4bf..ddf03db 100644
--- a/syncpkgd/syncpkgd.py
+++ b/syncpkgd/syncpkgd.py
@@ -61,6 +61,16 @@ class Actions:
self.__log(login, pkg, "package rejected by the server")
return False

+       def request_conf(self):
+               """request the up to date repo list"""
+               try:
+                       sock = 
open(os.path.join(pwd.getpwnam(options.uid).pw_dir, ".repoman.conf"))
+                       buf = sock.read()
+                       sock.close()
+               except IOError:
+                       buf = ""
+               return base64.encodestring(buf)
+
def report_result(self, login, password, pkg, exitcode, log=None):
"""report the build result of a package"""
if not self.__login(login, password):
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to