From c0ee9dabb895e9079a6367a823187f9e687c3e4a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 10 Nov 2009 14:25:40 +0100 Subject: remove getSettings from most plugins (inherited one is ok) Also move parse_release() to abrtlib, it's shared among Bugzilla and Catcut. Tested Bugzilla and Catcut, both work. Signed-off-by: Denys Vlasenko --- scripts/dbg_mkrpm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/dbg_mkrpm b/scripts/dbg_mkrpm index 28b040e5..e5f0fe97 100755 --- a/scripts/dbg_mkrpm +++ b/scripts/dbg_mkrpm @@ -23,5 +23,8 @@ rm -rf "$T" || exit gzip "abrt-$ABRTVER".tar || exit - -./dbg_rpmbuildlocal -bb abrt.spec 2>&1 | tee -a "$0.log" +# Less ugly way to pass exitcode (without bashisms)? +{ ./dbg_rpmbuildlocal -bb abrt.spec 2>&1; echo $? >"EXITCODE"; } | tee -a "$0.log" +ret=`cat EXITCODE` +rm EXITCODE +exit "$ret" -- cgit