]> git.pld-linux.org Git - packages/lvm2.git/commitdiff
- catch error, do not hide errors
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 20 Mar 2012 12:30:21 +0000 (12:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lvm2.spec -> 1.188

lvm2.spec

index 38719ae2cb80b8afe36f84ff3a590965248e915f..efa143406678ee74cb0fcd776b1a6a23eb803e74 100644 (file)
--- a/lvm2.spec
+++ b/lvm2.spec
@@ -1,5 +1,7 @@
 # TODO
 # - vgscan --ignorelocking failure creates /var/lock/lvm (even if /var is not yet mounted)
+# - Installed (but unpackaged) file(s) found:
+#   /etc/rc.d/init.d/clvmd
 # - --with-replicators (=internal/shared/none, default is none)?
 # - OCF agents?
 #
@@ -301,10 +303,9 @@ mv -f tools/dmsetup.static initrd-dmsetup
 
 # check if tools works
 for tool in initrd-lvm initrd-dmsetup; do
-       LVM_SYSTEM_DIR=$(pwd) ./${tool} help > /dev/null 2>&1
-       rc=$?
+       LVM_SYSTEM_DIR=$(pwd) ./$tool help && rc=$? || rc=$?
        if [ $rc -gt 127 ]; then
-               echo "Unexpected failure (exit status: $rc) from $tool. Does this tool work?!" >&2
+               echo >&2 "Unexpected failure (exit status: $rc) from $tool. Does this tool work?!"
                exit 1
        fi
 done
@@ -338,7 +339,7 @@ unset CC
        --with-interface=ioctl \
        --with-udev-prefix=/ \
        --with-systemd_dir=%{systemdunitdir} \
-        %{!?with_selinux:--disable-selinux}
+       %{!?with_selinux:--disable-selinux}
 
 %{__make} -j1
 %{__make} -j1 -C libdm LIB_STATIC=libdevmapper.a
This page took 0.04217 seconds and 4 git commands to generate.