[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51

Andreas Beckmann anbe at debian.org
Wed May 15 10:09:47 UTC 2013


The following commit has been merged in the master branch:
commit fcf68adfd737cc61be32534d7bdc6017a135ef5c
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Apr 8 01:30:44 2013 +0200

    p-s: use the "section" command to request a section
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/piuparts-slave.py b/piuparts-slave.py
index 753616c..0f2d1a3 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -212,6 +212,12 @@ class Slave:
             raise MasterIsBusy()
         if line != "hello\n":
             raise MasterDidNotGreet()
+        self._writeline("section", self._section)
+        line = self._readline()
+        if line == "busy\n":
+            raise MasterIsBusy()
+        elif line != "ok\n":
+            raise MasterNotOK()
         logging.debug("Connected to master")
 
     def close(self):

-- 
piuparts git repository



More information about the Piuparts-commits mailing list