[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053
Andreas Beckmann
debian at abeckmann.de
Fri Dec 23 10:27:12 UTC 2011
The following commit has been merged in the master branch:
commit 13de49c0bac473e30bbbe39f475ffc25bf06afe6
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Sun Nov 27 18:01:04 2011 +0100
reload section config each time the section is run
allows to change the config without restarting the slave, e.g.
to adjust buffer size or precedence level
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/README.txt b/README.txt
index 0c4e6fa..3fd4e8a 100644
--- a/README.txt
+++ b/README.txt
@@ -379,6 +379,9 @@ used for all further sections.
==== section specific configuration
+The section specific settings will be reloaded each time a section
+is being run.
+
* "master-command" is the command to run on master-host to start the master. When the master has been installed from the Debian package, the command is 'python /usr/share/piuparts/piuparts-master'. If you want to use a section in the master configuration file other than "master", append the section name to this command. For example, if the master configuration file has a "sid-ia64" section that you want to use, the command should be 'python /usr/share/piuparts/piuparts-master sid-ia64'.
* "log-file" is the name of a file to where the master should write its log messages. In the default configuration file it is "/dev/null", that is, log messages are not put in a file.
diff --git a/debian/changelog b/debian/changelog
index ea89d1d..981130f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -78,6 +78,7 @@ piuparts (0.42) UNRELEASED; urgency=low
- Check tarball age regularily.
- Log tarball creation in *.tgz.log.
- Request and print package counts from master.
+ - Reload section config every time a section is being run.
* piuparts-report.py:
- state-*.html: Sort package lists by name.
- source/?/*.html: Sort binary packages by name.
diff --git a/piuparts-slave.py b/piuparts-slave.py
index 62be796..d1935c5 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -286,6 +286,8 @@ class Section:
def run(self):
logging.info("-------------------------------------------")
logging.info("Running section " + self._config.section)
+ self._config = Config(section=self._config.section)
+ self._config.read(CONFIG_FILE)
self._slave.connect_to_master(self._log_file)
oldcwd = os.getcwd()
--
piuparts git repository
More information about the Piuparts-commits
mailing list