SHA256
1
0
forked from pool/quilt
quilt/hackweek-11-09-inspect-temporary-data-file.patch
Takashi Iwai a5de1023e1 Accepting request 264454 from home:jdelvare:branches:devel:tools:scm
- Fix the series file consistency checker
- Many fixes and improvements to the setup command
- New option --fast for quilt setup (hackweek project)

OBS-URL: https://build.opensuse.org/request/show/264454
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=92
2014-12-10 16:05:56 +00:00

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