summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2014-11-17 15:04:35 (GMT)
committerŁukasz Stelmach <l.stelmach@samsung.com>2014-11-17 15:04:35 (GMT)
commitc5b2551051498cb4f348a9621af312bf2790d9de (patch)
tree635fb1856d41fa3b8e626ba9994ef157a1a74f7d
parenta2a3456b095121868f34da2c26c12bf0584ed02f (diff)
downloadkdbus-bus-sandbox/lstelmach/kdbus-integration-systemd-217.zip
kdbus-bus-sandbox/lstelmach/kdbus-integration-systemd-217.tar.gz
kdbus-bus-sandbox/lstelmach/kdbus-integration-systemd-217.tar.bz2
spec: fix unifdef exit status detectionsandbox/lstelmach/kdbus-integration-systemd-217
Change-Id: I6b6507d1fe362d0f8b91a07be2c9a3697c01edf6 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
-rw-r--r--packaging/kdbus.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/kdbus.spec b/packaging/kdbus.spec
index 02d6d67..045deaa 100644
--- a/packaging/kdbus.spec
+++ b/packaging/kdbus.spec
@@ -43,7 +43,7 @@ make KERNELDIR=/lib/modules/%{x_kernel_devel_uname_r}/build %{?_smp_mflags} modu
mkdir -p %{buildroot}/lib/modules/%{x_kernel_devel_uname_r}/extra
install -m644 kdbus.ko %{buildroot}/lib/modules/%{x_kernel_devel_uname_r}/extra/
install -m755 -d %{buildroot}%{_includedir}
-[ $(unifdef -U__KERNEL__ kdbus.h > %{buildroot}%{_includedir}/kdbus.h) -gt 1 ] && { echo 'unifdef failed to process file'; exit 1; }
+[ $(unifdef -U__KERNEL__ kdbus.h > %{buildroot}%{_includedir}/kdbus.h; echo $?) -gt 1 ] && { echo 'unifdef failed to process file'; exit 1; }
%files kmod
/lib/modules/%{x_kernel_devel_uname_r}/extra/kdbus.ko