From 5e7feda5de73839dd71fcd3e4f6b10adc78d1c0b Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Tue, 24 Feb 2009 22:55:21 +0900 Subject: Bug#493154: warn if --othermirror is specified and --override-config is not specified. People don't read the manpage thoroughly, and file bugs. Add a Warning. --- pbuilder-checkparams | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pbuilder-checkparams') diff --git a/pbuilder-checkparams b/pbuilder-checkparams index cadd24b..47e4613 100755 --- a/pbuilder-checkparams +++ b/pbuilder-checkparams @@ -28,6 +28,7 @@ INTERNAL_BUILD_UML="" CHROOTEXEC="" OVERRIDE_APTLINES="no" +OVERRIDE_APTLINES_WARN="" # set this if --override-config option should be set. BINARY_ARCH="no" PBUILDER_BUILD_LOGFILE= PRESERVE_BUILDPLACE="no" @@ -62,10 +63,12 @@ while [ -n "$1" ]; do ;; --mirror) MIRRORSITE="$2"; + OVERRIDE_APTLINES_WARN=yes shift; shift; ;; --othermirror) OTHERMIRROR="$2"; + OVERRIDE_APTLINES_WARN=yes shift; shift; ;; --http-proxy) @@ -74,10 +77,12 @@ while [ -n "$1" ]; do ;; --distribution) DISTRIBUTION="$2"; + OVERRIDE_APTLINES_WARN=yes shift; shift; ;; --components) COMPONENTS="$2"; + OVERRIDE_APTLINES_WARN=yes shift; shift; ;; --buildresult) -- cgit v1.2.3