[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.49-105-gac1319a

Andreas Beckmann anbe at debian.org
Fri Mar 1 15:32:57 UTC 2013


The following commit has been merged in the piatti branch:
commit b54f2cc3b924e7763b84960f217a0789b4e505fb
Author: Andreas Beckmann <anbe at debian.org>
Date:   Wed Feb 20 19:31:39 2013 +0100

    source read_config.sh instead of embedding a copy of get_config_value()
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/debian/changelog b/debian/changelog
index 339ec76..3d3e364 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -30,6 +30,7 @@ piuparts (0.50) UNRELEASED; urgency=low
   * debian/rules: Set 'prefix' and 'DESTDIR' for build and install.
   * lib/read_config.sh: Factored out the piuparts.conf reading function that
     is used by all master/slave shell scripts. Shipped in piuparts.common.
+  * master-bin/slave-bin: Switch to sourcing read_config.sh.
   * pre_install_exceptions: Handle bootcd-ia64 installation in squeeze.
   * post_distupgrade_exceptions: Handle libdb4.8 removal in wheezy.
   * pre_remove_50_find_bad_permissions: Add some exceptions.
diff --git a/master-bin/archive_old_logs.in b/master-bin/archive_old_logs.in
index 106c024..7f86d72 100755
--- a/master-bin/archive_old_logs.in
+++ b/master-bin/archive_old_logs.in
@@ -17,24 +17,7 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/detect_archive_issues.in b/master-bin/detect_archive_issues.in
index af554e4..b4a05e9 100755
--- a/master-bin/detect_archive_issues.in
+++ b/master-bin/detect_archive_issues.in
@@ -17,24 +17,7 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/detect_network_issues.in b/master-bin/detect_network_issues.in
index e5cdaca..e623a3a 100755
--- a/master-bin/detect_network_issues.in
+++ b/master-bin/detect_network_issues.in
@@ -17,24 +17,7 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/detect_piuparts_issues.in b/master-bin/detect_piuparts_issues.in
index f6e6a4d..1e37d1e 100755
--- a/master-bin/detect_piuparts_issues.in
+++ b/master-bin/detect_piuparts_issues.in
@@ -17,24 +17,7 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/detect_well_known_errors.in b/master-bin/detect_well_known_errors.in
index cd055d4..5c570e6 100755
--- a/master-bin/detect_well_known_errors.in
+++ b/master-bin/detect_well_known_errors.in
@@ -22,24 +22,7 @@
 #
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/generate_daily_report.in b/master-bin/generate_daily_report.in
index 6b545c1..54b9717 100755
--- a/master-bin/generate_daily_report.in
+++ b/master-bin/generate_daily_report.in
@@ -17,24 +17,7 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/master_cleanup.in b/master-bin/master_cleanup.in
index f138482..eb89229 100755
--- a/master-bin/master_cleanup.in
+++ b/master-bin/master_cleanup.in
@@ -24,24 +24,7 @@ set -e
 #
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value HTDOCS global output-directory
 
diff --git a/master-bin/prepare_backup.in b/master-bin/prepare_backup.in
index 2ea9b8c..66e3301 100755
--- a/master-bin/prepare_backup.in
+++ b/master-bin/prepare_backup.in
@@ -18,24 +18,7 @@ set -e
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/reclassify_bugged.in b/master-bin/reclassify_bugged.in
index 6d8a2a2..30c8a4c 100755
--- a/master-bin/reclassify_bugged.in
+++ b/master-bin/reclassify_bugged.in
@@ -18,24 +18,7 @@ set -e
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/report_newly_bugged_packages.in b/master-bin/report_newly_bugged_packages.in
index ca60399..ca96507 100755
--- a/master-bin/report_newly_bugged_packages.in
+++ b/master-bin/report_newly_bugged_packages.in
@@ -17,24 +17,7 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/report_stale_reserved_packages.in b/master-bin/report_stale_reserved_packages.in
index 945d532..21807a3 100755
--- a/master-bin/report_stale_reserved_packages.in
+++ b/master-bin/report_stale_reserved_packages.in
@@ -17,24 +17,7 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/report_untestable_packages.in b/master-bin/report_untestable_packages.in
index 5b84fd5..3e6a817 100755
--- a/master-bin/report_untestable_packages.in
+++ b/master-bin/report_untestable_packages.in
@@ -17,24 +17,7 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/master-bin/reschedule_oldest_logs.in b/master-bin/reschedule_oldest_logs.in
index 0c6fdfc..ca531e0 100755
--- a/master-bin/reschedule_oldest_logs.in
+++ b/master-bin/reschedule_oldest_logs.in
@@ -17,24 +17,7 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value MASTER global master-directory
 get_config_value SECTIONS global sections
diff --git a/slave-bin/detect_leftover_processes.in b/slave-bin/detect_leftover_processes.in
index 9cd09c1..8a280b2 100755
--- a/slave-bin/detect_leftover_processes.in
+++ b/slave-bin/detect_leftover_processes.in
@@ -22,24 +22,7 @@ set -e
 #
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 # outputs file age in seconds (or 0 if the file does not exist)
 file_age()
diff --git a/slave-bin/detect_slave_problems.in b/slave-bin/detect_slave_problems.in
index f6b32bd..4bbbb9a 100755
--- a/slave-bin/detect_slave_problems.in
+++ b/slave-bin/detect_slave_problems.in
@@ -23,24 +23,7 @@ set -e
 #
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 # outputs file age in seconds (or 0 if the file does not exist)
 file_age()
diff --git a/slave-bin/detect_tmp_cruft.in b/slave-bin/detect_tmp_cruft.in
index 8c76631..149d6a0 100755
--- a/slave-bin/detect_tmp_cruft.in
+++ b/slave-bin/detect_tmp_cruft.in
@@ -22,24 +22,7 @@ set -e
 #
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value PIUPARTS_TMPDIR global tmpdir /org/piuparts.debian.org/tmp
 
diff --git a/slave-bin/slave_cleanup.in b/slave-bin/slave_cleanup.in
index ea73149..133abcd 100755
--- a/slave-bin/slave_cleanup.in
+++ b/slave-bin/slave_cleanup.in
@@ -24,24 +24,7 @@ set -e
 #
 
 
-PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
-[ -f "$PIUPARTS_CONF" ] || exit 0
-
-# usage: get_config_value VARIABLE section key [default]
-get_config_value()
-{
-	local section key value
-	test -n "$1" && test "$1" = "$(echo "$1" | tr -c -d '[:alnum:]_')" || exit 1
-	section="$2"
-	key="$3"
-	value="$(sed -rn '\#^\['"$section"'\]#,/^\[/ {/^'"$key"'\s*=/ {s/^'"$key"'\s*=\s*//; s/\s*$//; p}}' "$PIUPARTS_CONF")"
-	test -n "$value" || value="$4"
-	if [ -z "$value" ]; then
-		echo "'$key' not set in section [$section] of $PIUPARTS_CONF, exiting." >&2
-		exit 1
-	fi
-	eval "$1"='"$value"'
-}
+. @sharedir@/piuparts/lib/read_config.sh
 
 get_config_value PIUPARTS_TMPDIR global tmpdir /org/piuparts.debian.org/tmp
 
diff --git a/slave-bin/slave_run.in b/slave-bin/slave_run.in
index 259a569..87ffe8f 100755
--- a/slave-bin/slave_run.in
+++ b/slave-bin/slave_run.in
@@ -21,6 +21,10 @@ set -e
 # run piuparts-slave in screen so that a screendump can be mailed via cron to monitor the slave
 #
 
+
+. @sharedir@/piuparts/lib/read_config.sh
+
+
 SESSIONNAME=piuparts_slave_screen
 SCREENLOG=/org/piuparts.debian.org/slave/screenlog.0
 export PYTHONPATH=/org/piuparts.debian.org/lib/python2.6/dist-packages:/org/piuparts.debian.org/lib/python2.7/dist-packages

-- 
piuparts git repository



More information about the Piuparts-commits mailing list