forked from pool/quilt
30 lines
774 B
Diff
30 lines
774 B
Diff
|
From: Jean Delvare <jdelvare@suse.de>
|
||
|
Subject: inspect-wrapper: Minor code optimization
|
||
|
Upstream: Committed (f159ee6f0bcd6b9abdc8830a1228d902e93311ae)
|
||
|
|
||
|
Don't test if inputfile is set twice in a row.
|
||
|
---
|
||
|
quilt/scripts/inspect-wrapper.in | 6 ++++--
|
||
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
||
|
|
||
|
--- a/quilt/scripts/inspect-wrapper.in
|
||
|
+++ b/quilt/scripts/inspect-wrapper.in
|
||
|
@@ -226,13 +226,15 @@ unzip)
|
||
|
inputfile=$(unzip_input_file "$@")
|
||
|
;;
|
||
|
esac
|
||
|
-if [ -z "$inputfile" ]
|
||
|
+if [ -n "$inputfile" ]
|
||
|
then
|
||
|
+ unpackfile=$(original_file "$inputfile")
|
||
|
+else
|
||
|
# put data from stdin into tmpfile
|
||
|
cat > $tmpdir/data
|
||
|
+ unpackfile=$(original_file $tmpdir/data)
|
||
|
fi
|
||
|
|
||
|
-unpackfile=$(original_file ${inputfile:-$tmpdir/data})
|
||
|
if [ -n "$unpackfile" ]
|
||
|
then
|
||
|
case "${0##*/}" in
|