Commit 83e2e4e4 authored by Colin Watson's avatar Colin Watson

Fix --unpack-tarball= option (thanks, Torsten Landschoff; closes:

#500759).

r57243
parent 22470869
......@@ -10,6 +10,8 @@ debootstrap (1.0.11) UNRELEASED; urgency=low
* Rename 'repeat' to 'repeatn', since 'repeat' is a reserved word in zsh;
although strictly speaking this seems like an incompatibility in zsh
when linked to /bin/sh (closes: #340058).
* Fix --unpack-tarball= option (thanks, Torsten Landschoff; closes:
#500759).
-- Colin Watson <cjwatson@ubuntu.com> Fri, 31 Oct 2008 13:37:01 +0000
......
......@@ -203,16 +203,19 @@ if [ $# != 0 ] ; then
error 1 NEEDARG "option requires an argument %s" "$1"
fi
;;
--unpack-tarball)
if [ -n "$2" ] ; then
if [ ! -f "$2" ] ; then
error 1 NOTARBALL "%s: No such file or directory" "$2"
fi
--unpack-tarball|--unpack-tarball=?*)
if [ "$1" = "--unpack-tarball" -a -n "$2" ] ; then
UNPACK_TARBALL="$2"
shift 2
elif [ "$1" != "${1#--unpack-tarball=}" ]; then
UNPACK_TARBALL="${1#--unpack-tarball=}"
shift
else
error 1 NEEDARG "option requires an argument %s" "$1"
fi
if [ ! -f "$UNPACK_TARBALL" ] ; then
error 1 NOTARBALL "%s: No such file or directory" "$UNPACK_TARBALL"
fi
;;
--include|--include=?*)
if [ "$1" = "--include" -a -n "$2" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment