forked from pool/quilt
This commit is contained in:
parent
64cd01ba42
commit
6540857427
31
quilt-improve-formail-error.diff
Normal file
31
quilt-improve-formail-error.diff
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From: Bernhard Walle <bwalle@suse.de>
|
||||||
|
Subject: [PATCH] Check for 'formail' in 'quilt mail'
|
||||||
|
|
||||||
|
To allow using 'procmail' (which contains 'formail') as weak dependency in
|
||||||
|
package managers, explicitely check for the 'formail' binary when invoking
|
||||||
|
'quilt mail' so that the user gets a clear error message when 'formail'
|
||||||
|
is missing and knows what to do.
|
||||||
|
|
||||||
|
|
||||||
|
Signed-off-by: Bernhard Walle <bwalle@suse.de>
|
||||||
|
|
||||||
|
---
|
||||||
|
quilt/mail.in | 7 +++++++
|
||||||
|
1 file changed, 7 insertions(+)
|
||||||
|
|
||||||
|
--- a/quilt/mail.in
|
||||||
|
+++ b/quilt/mail.in
|
||||||
|
@@ -232,6 +232,13 @@ then
|
||||||
|
usage
|
||||||
|
fi
|
||||||
|
|
||||||
|
+# check if formail is installed before doing anything
|
||||||
|
+if ! which formail &> /dev/null
|
||||||
|
+then
|
||||||
|
+ echo "You have to install 'formail' to use 'quilt mail'" >&2
|
||||||
|
+ exit 1
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
if [ $# -ge 1 ]
|
||||||
|
then
|
||||||
|
if [ "$1" = - ]
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 27 22:36:14 CET 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
- Only recommend 'procmail' (contains the 'formail' binary) instead
|
||||||
|
of requiring it. It's only needed for the 'mail' command.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 21 15:18:12 CEST 2008 - bwalle@suse.de
|
Thu Aug 21 15:18:12 CEST 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
17
quilt.spec
17
quilt.spec
@ -24,8 +24,9 @@ Summary: A Tool for Working with Many Patches
|
|||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
Group: Productivity/Text/Utilities
|
Group: Productivity/Text/Utilities
|
||||||
Version: 0.47
|
Version: 0.47
|
||||||
Release: 1
|
Release: 12
|
||||||
Requires: coreutils diffutils patch gzip bzip2 perl mktemp diffstat procmail
|
Requires: coreutils diffutils patch gzip bzip2 perl mktemp diffstat
|
||||||
|
Recommends: procmail
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: suse-start-quilt-mode.el
|
Source1: suse-start-quilt-mode.el
|
||||||
@ -33,7 +34,8 @@ Recommends: bash-completion
|
|||||||
Patch1: expand.diff
|
Patch1: expand.diff
|
||||||
Patch2: docdir.diff
|
Patch2: docdir.diff
|
||||||
Patch3: patch-wrapper-rpm.diff
|
Patch3: patch-wrapper-rpm.diff
|
||||||
Patch4: quilt-fix-completion.diff
|
Patch4: %{name}-fix-completion.diff
|
||||||
|
Patch5: %{name}-improve-formail-error.diff
|
||||||
Url: http://savannah.nongnu.org/projects/quilt
|
Url: http://savannah.nongnu.org/projects/quilt
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -53,7 +55,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -p1 -P 1 -P 2 -P 3 -P 4
|
%patch -p1 -P 1 -P 2 -P 3 -P 4 -P 5
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoconf
|
autoconf
|
||||||
@ -117,6 +119,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc doc/quilt.pdf
|
%doc doc/quilt.pdf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 27 2008 bwalle@suse.de
|
||||||
|
- Only recommend 'procmail' (contains the 'formail' binary) instead
|
||||||
|
of requiring it. It's only needed for the 'mail' command.
|
||||||
* Thu Aug 21 2008 bwalle@suse.de
|
* Thu Aug 21 2008 bwalle@suse.de
|
||||||
- update to 0.47
|
- update to 0.47
|
||||||
o quilt/scripts/patchfns.in (cat_series): Handle lines properly
|
o quilt/scripts/patchfns.in (cat_series): Handle lines properly
|
||||||
@ -373,7 +378,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
- Re-add diffstat support to refresh command.
|
- Re-add diffstat support to refresh command.
|
||||||
- Documentation update.
|
- Documentation update.
|
||||||
- Bump version to 0.35.
|
- Bump version to 0.35.
|
||||||
* Fri Jun 11 2004 agruen@suse.de
|
* Thu Jun 10 2004 agruen@suse.de
|
||||||
- Add meta-data version check/upgrade code from Martin Quinson and
|
- Add meta-data version check/upgrade code from Martin Quinson and
|
||||||
me; new `quilt upgrade' command.
|
me; new `quilt upgrade' command.
|
||||||
- Handle new/removed files correctly in generated patches: If the
|
- Handle new/removed files correctly in generated patches: If the
|
||||||
@ -416,7 +421,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
of Holger Schurig's patcher tool,
|
of Holger Schurig's patcher tool,
|
||||||
http://www.holgerschurig.de/patcher.html.
|
http://www.holgerschurig.de/patcher.html.
|
||||||
- Update German translation.
|
- Update German translation.
|
||||||
* Wed Jun 02 2004 agruen@suse.de
|
* Tue Jun 01 2004 agruen@suse.de
|
||||||
- Fix from Dean Roehrich <roehrich@sgi.com>: Preserve file mode
|
- Fix from Dean Roehrich <roehrich@sgi.com>: Preserve file mode
|
||||||
of original file when creating backup files.
|
of original file when creating backup files.
|
||||||
* Tue Jun 01 2004 mquinson@tuxfamily.org
|
* Tue Jun 01 2004 mquinson@tuxfamily.org
|
||||||
|
Loading…
x
Reference in New Issue
Block a user