aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-checkparams
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2008-03-30 20:54:18 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2008-03-30 20:54:18 +0900
commitdb45d6ff5a79e6d329483fa2428eb1ba86975e55 (patch)
treea2f5bd2c3b9f7fdad5925601c469272f3b42a67b /pbuilder-checkparams
parentc77e778122f574f2a067e6414537ffa5bdb5397b (diff)
downloadpbuilder-db45d6ff5a79e6d329483fa2428eb1ba86975e55.tar
pbuilder-db45d6ff5a79e6d329483fa2428eb1ba86975e55.tar.gz
--create with --basetgz will not fail file does not exist (closes: #451835)
--basetgz expects an existing file except for when 'create'-ing. 'create' was special-cased, but '--create' wasn't. Special-case both.
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-xpbuilder-checkparams7
1 files changed, 4 insertions, 3 deletions
diff --git a/pbuilder-checkparams b/pbuilder-checkparams
index 34b4a42..54afa06 100755
--- a/pbuilder-checkparams
+++ b/pbuilder-checkparams
@@ -41,9 +41,10 @@ IGNORE_UMOUNT=""
while [ -n "$1" ]; do
case "$1" in
--basetgz)
- if [ "${PBCURRENTCOMMANDLINEOPERATION}" = 'create' ]; then
- touch "$2";
- fi
+ case "${PBCURRENTCOMMANDLINEOPERATION}" in
+ create|--create)
+ touch "$2";
+ esac
if [ ! -f "$2" ]; then
echo "E: File $2 does not exist" >&2
exit 1