aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-02-03 15:14:55 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-02-03 15:14:55 +0000
commit76dc8b38fcf2ff3619098b383ebacee3d7b5a35f (patch)
tree6b24df45fe7614dbcf9a1eb3bcdf8d2abfa37324
parentcb3d24a6dd659314c42ef37758c4fbac05b65de9 (diff)
downloadpaludis-76dc8b38fcf2ff3619098b383ebacee3d7b5a35f.tar.gz
paludis-76dc8b38fcf2ff3619098b383ebacee3d7b5a35f.tar.xz
Don't loop infinitely if given an unsupported option.
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/unpack2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/utils/unpack b/paludis/repositories/e/ebuild/utils/unpack
index a9dd705..6796538 100755
--- a/paludis/repositories/e/ebuild/utils/unpack
+++ b/paludis/repositories/e/ebuild/utils/unpack
@@ -132,6 +132,8 @@ while [[ "${1#--}" != "${1}" ]] ; do
elif [[ "${1}" == --tar-option=* ]] ; then
TAR_OPTIONS[${#TAR_OPTIONS[@]}]="${1#*=}"
shift
+ else
+ die "Unrecognised option: ${1}"
fi
done