SHA256
1
0
forked from pool/quilt

Fix inspect (used by quilt setup.)

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=39
This commit is contained in:
Jean Delvare 2011-12-07 22:07:14 +00:00 committed by Git OBS Bridge
parent 55cd049528
commit 868ea7821c
2 changed files with 22 additions and 0 deletions

20
fix-inspect.patch Normal file
View File

@ -0,0 +1,20 @@
From: Jean Delvare <jdelvare@suse.de>
Subject: Fix quilt setup
A previous bug fix uncovered an old bug, which has to be fixed now:
a file name of "-" means "read from stdin" for tar.
---
quilt/scripts/inspect.in | 2 ++
1 file changed, 2 insertions(+)
--- a/quilt/scripts/inspect.in
+++ b/quilt/scripts/inspect.in
@@ -266,6 +266,8 @@ cat <<-'EOF' > $tmpdir/bin/wrapper
;;
tar)
inputfile=$(tar_input_file "$@")
+ # For tar, file - means read from stdin
+ [ "$inputfile" = "-" ] && inputfile=
;;
esac
if [ -z "$inputfile" ]; then

View File

@ -41,6 +41,7 @@ Patch3: patch-wrapper-rpm.diff
Patch4: grep-support-spaces.patch
Patch5: suse-workaround-pseudo-release.patch
Patch6: mail-fix-delivery-address-checking.patch
Patch7: fix-inspect.patch
Url: http://savannah.nongnu.org/projects/quilt
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -66,6 +67,7 @@ Authors:
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
autoconf