From 6cd901f82dcf29fcb50fa4e5c4a315e17d91132e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eddy=20Petri=C8=99or?= Date: Thu, 6 Mar 2008 03:07:57 +0200 Subject: If there's no MIRRORSITE line in the pbuilderrc, add one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If, when parsing the current existing pbuilderrc file, no MIRRORSITE setting is found, fall back to autodetection. Signed-off-by: Eddy Petrișor --- debian/pbuilder.postinst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/pbuilder.postinst') diff --git a/debian/pbuilder.postinst b/debian/pbuilder.postinst index 8665c49..ae1cb3d 100755 --- a/debian/pbuilder.postinst +++ b/debian/pbuilder.postinst @@ -38,6 +38,11 @@ case "$1" in # make sure latter calls do not overwrite stuff silently db_set pbuilder/rewrite "false" + else + # no MIRRORSITE line found in the pbuilderrc file + echo "MIRRORSITE=$PLACEHOLDER" >> "$CONFFILE" + MIRRORSITE="" + db_set pbuilder/mirrorsite "" fi else echo "MIRRORSITE=$PLACEHOLDER" > "$CONFFILE" -- cgit v1.2.3