aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-checkparams
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2008-08-11 23:40:33 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2008-08-11 23:40:33 +0900
commitd154d33fea06d7a7be40775b4063ae8250312761 (patch)
tree65d6f9e4abed1abddb3befa44c2dfe822f872221 /pbuilder-satisfydepends-checkparams
parent98960e2003834913df870d96a4f7ceabc6fac2c9 (diff)
downloadpbuilder-d154d33fea06d7a7be40775b4063ae8250312761.tar
pbuilder-d154d33fea06d7a7be40775b4063ae8250312761.tar.gz
Reorder command-line options, and add error check so that things are better checked.
--internal-chrootexec "${CHROOTEXEC}" --chroot "${BUILDPLACE}" will always override --internal-chrootexec command, --chroot "${BUILDPLACE}" --internal-chrootexec "${CHROOTEXEC}" is better.
Diffstat (limited to 'pbuilder-satisfydepends-checkparams')
-rwxr-xr-xpbuilder-satisfydepends-checkparams11
1 files changed, 9 insertions, 2 deletions
diff --git a/pbuilder-satisfydepends-checkparams b/pbuilder-satisfydepends-checkparams
index 3314c64..f545828 100755
--- a/pbuilder-satisfydepends-checkparams
+++ b/pbuilder-satisfydepends-checkparams
@@ -25,7 +25,7 @@ BD_REGEXP="build-(depends|depends-indep)"
BC_REGEXP="build-(conflicts|conflicts-indep)"
FORCEVERSION=""
CONTINUE_FAIL="no"
-
+CHROOTEXEC_AFTER_INTERNAL_CHROOTEXEC=no
while [ -n "$1" ]; do
case "$1" in
@@ -33,12 +33,20 @@ while [ -n "$1" ]; do
DEBIAN_CONTROL="$2"
shift; shift
;;
+
+ # --chroot option and --internal-chrootexec options conflict with each other.
+ #
--chroot)
CHROOTEXEC="chroot $2 "
+ if [ ${CHROOTEXEC_AFTER_INTERNAL_CHROOTEXEC} = maybe ]; then
+ echo '--chroot specified after --internal-chrootexec' >&2
+ exit 1
+ fi
shift; shift
;;
--internal-chrootexec)
CHROOTEXEC="$2"
+ CHROOTEXEC_AFTER_INTERNAL_CHROOTEXEC=maybe
shift; shift
;;
--binary-all)
@@ -70,5 +78,4 @@ while [ -n "$1" ]; do
esac
done
-
checkbuilddep_internal