aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-checkparams
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2009-02-24 22:55:21 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2009-02-24 22:55:21 +0900
commit5e7feda5de73839dd71fcd3e4f6b10adc78d1c0b (patch)
treecb9fa053754771154c5ea469c09bbe45c554e7b5 /pbuilder-checkparams
parenta7ca74cd7d629a4691accabf6811dde4e55100fd (diff)
downloadpbuilder-5e7feda5de73839dd71fcd3e4f6b10adc78d1c0b.tar
pbuilder-5e7feda5de73839dd71fcd3e4f6b10adc78d1c0b.tar.gz
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.
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-xpbuilder-checkparams5
1 files changed, 5 insertions, 0 deletions
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)