commit 2f471c8a3ab6fc078bf5583754a55601c3ec9fd5
Author: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Date: Wed Oct 31 11:47:48 2012 +0100
Make sure python failure will propragate to rpmbuild
Before this fix the error return code got hidden by the pipeline
macros.fjava | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/macros.fjava b/macros.fjava
index c645f83..ee368ec 100644
--- a/macros.fjava
+++ b/macros.fjava
@@ -82,7 +82,8 @@ python -m %{_datadir}/java-utils/maven_depmap %{-a} %{-v*:-r %{-v*}}
\\\
%if %# == 0 \
"${_jpath}" \\\
%endif \
- | sed 's:%{buildroot}::' | cat - maven-files-%{name}%{-f*:-%{-f*}} \\\
+ > maven-files.tmp \
+sed 's:%{buildroot}::' maven-files.tmp | cat - maven-files-%{name}%{-f*:-%{-f*}}
\\\
| sort | uniq > maven-files-%{name}%{-f*:-%{-f*}}.new \
mv maven-files-%{name}%{-f*:-%{-f*}}.new maven-files-%{name}%{-f*:-%{-f*}} \
# this part only works for jars for now (now war/other compat support) \
Show replies by date