From e4dc31110bf491251462a0b9db3584e91652388c Mon Sep 17 00:00:00 2001 From: Eddy Petrisor Date: Mon, 25 Jun 2007 21:33:07 +0300 Subject: do not overwrite custom pbuilderrc files, only the default --- debian/pbuilder.postinst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'debian/pbuilder.postinst') diff --git a/debian/pbuilder.postinst b/debian/pbuilder.postinst index 9e83c80..c3f6ac1 100755 --- a/debian/pbuilder.postinst +++ b/debian/pbuilder.postinst @@ -30,6 +30,10 @@ case "$1" in if [ "$MIRRORSITE" = "_" ] then + # if there is a custom file, then we shouldn't touch it + CURRENTMIRROR=$(grep -E "MIRRORSITE=" "$CONFFILE" | sed 's#MIRRORSITE=##g') + [ "$CURRENTMIRROR" = "_" ] || exit 0 + MIRRORSITE=$(grep -E '^deb ' /etc/apt/sources.list | head -n 1 | awk '{print $2;}') db_set pbuilder/mirrorsite "$MIRRORSITE" db_input medium pbuilder/mirrorsite || true -- cgit v1.2.3