[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-749-g57a6ca1

Andreas Beckmann debian at abeckmann.de
Mon Jun 18 10:40:05 UTC 2012


The following commit has been merged in the develop branch:
commit 6e8b19aadba37dac82a21cbbac8feaab1acbdd3a
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Mon Jun 18 00:35:22 2012 +0200

    p-s: update master-command documentation
    
    and drop the last traces of _global_config
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index 60d2e97..afeec52 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -77,7 +77,8 @@ piuparts (0.45) UNRELEASED; urgency=low
     - Don't remove eatmydata when minimizing a chroot.  (Closes: #658962)
   * piuparts.conf:
     - Defaults for all [section] settings can be set in the [global] section.
-    - Make master-command a [global] instead of a [section] setting.
+    - Change master-command to not include the section name so that it can be
+      set in the [global] section.
       The section name will be given as an argument to this command.
     - Make doc-root default to "/".
     - Removed deprecated keys: known_circular_depends.
diff --git a/piuparts-slave.py b/piuparts-slave.py
index 65090ee..890a38f 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -246,8 +246,7 @@ class Slave:
 
 class Section:
 
-    def __init__(self, section, global_config):
-        self._global_config = global_config
+    def __init__(self, section):
         self._config = Config(section=section, defaults_section="global")
         self._config.read(CONFIG_FILE)
         self._sleep_until = 0
@@ -624,7 +623,7 @@ def main():
     else:
         section_names = global_config["sections"].split()
 
-    sections = [Section(section_name, global_config)
+    sections = [Section(section_name)
                 for section_name in section_names]
 
     while True:

-- 
piuparts git repository



More information about the Piuparts-commits mailing list