Accepting request 344712 from home:m4mnux:branches:Base:System

Fix syntax error when -f (flush failed multipath devices) used in command line.

OBS-URL: https://build.opensuse.org/request/show/344712
OBS-URL: https://build.opensuse.org/package/show/Base:System/sg3_utils?expand=0&rev=55
This commit is contained in:
Marcus Meissner 2015-11-18 13:47:16 +00:00 committed by Git OBS Bridge
parent da85d1636d
commit 664526c139
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: scripts/rescan-scsi-bus.sh
===================================================================
--- scripts/rescan-scsi-bus.sh.orig
+++ scripts/rescan-scsi-bus.sh
@@ -1183,7 +1183,7 @@ declare -i updated=0
declare -i rmvd=0
if [ -n "$flush" ] ; then
- if [-x $MULTIPATH ] ; then
+ if [ -x $MULTIPATH ] ; then
flushmpaths 1
fi
fi

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 16 11:06:52 UTC 2015 - m4mnux@gmail.com
- Add sg3_utils-flush-fixup.patch: Fix syntax error when -f (flush
failed multipath devices) used in command line.
-------------------------------------------------------------------
Mon Oct 5 10:31:04 UTC 2015 - zaitor@opensuse.org

View File

@ -30,6 +30,7 @@ Patch1: sgut-libversioning.diff
Patch3: sg3_utils-sg_inq-blacklist.diff
# PATCH-FIX-UPSTREAM sg3_utils-58-scsi-sg3_symlink-fixup.patch boo#940833 boo#940834 boo#947947 zaitor@opensuse.org -- Fix broken line in script
Patch4: sg3_utils-58-scsi-sg3_symlink-fixup.patch
Patch5: sg3_utils-flush-fixup.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtool
BuildRequires: udev
@ -88,6 +89,7 @@ applications that want to make use of libsgutils.
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5
%build
autoreconf -fi