SHA256
1
0
forked from pool/quilt

- Fix setup-check-for-rpmbuild.patch: echo was used where printf

was intended (bnc#873817); also update upstream reference

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=83
This commit is contained in:
Jean Delvare 2014-06-09 13:49:15 +00:00 committed by Git OBS Bridge
parent e1c9c765c9
commit b2d1ff6a88
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 9 15:46:01 CEST 2014 - jdelvare@suse.de
- Fix setup-check-for-rpmbuild.patch: echo was used where printf
was intended (bnc#873817); also update upstream reference
-------------------------------------------------------------------
Mon Jun 9 14:45:46 CEST 2014 - jdelvare@suse.de

View File

@ -1,7 +1,7 @@
From: Jean Delvare <jdelvare@suse.de>
Subject: setup: Check for rpmbuild availability
References: bnc#873817
Upstream: Not yet submitted
Upstream: Committed (bf8bc1cfc097ab7692d2ce41a9933ea3b0d9e5e7)
Before running inspect on a spec file, verify that rpmbuild is
available. Print a user-friendly error message if not.
@ -18,7 +18,7 @@ available. Print a user-friendly error message if not.
+ # check if rpmbuild is installed before running inspect
+ if ! type rpmbuild &> /dev/null
+ then
+ echo $"You have to install '%s' (from package %s) to use 'quilt %s'\n" \
+ printf $"You have to install '%s' (from package %s) to use 'quilt %s'\n" \
+ rpmbuild rpm-build setup >&2
+ exit 1
+ fi