commit 7cbb11c67de476c768c8c5836468f73eb7491631
Author: Adam Osuchowski <ad...@pld-linux.org>
Date:   Thu Feb 8 12:20:29 2018 +0100

    - fix missed variable init
    
      /usr/bin/rescan-scsi-bus.sh: line 257: test: !=: unary operator expected

 sg3_utils-rescan-scsi-bus.sh.patch | 11 +++++++++++
 sg3_utils.spec                     |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/sg3_utils.spec b/sg3_utils.spec
index 4a86084..2cb237d 100644
--- a/sg3_utils.spec
+++ b/sg3_utils.spec
@@ -2,11 +2,12 @@ Summary:      Utilities and test programs for the Linux sg 
version 3 device driver
 Summary(pl.UTF-8):     Programy narzędziowe i testowe dla linuksowego 
sterownika sg w wersji 3
 Name:          sg3_utils
 Version:       1.42
-Release:       1
+Release:       2
 License:       GPL v2 (utilities), BSD (library)
 Group:         Applications/System
 Source0:       http://sg.danny.cz/sg/p/%{name}-%{version}.tar.xz
 # Source0-md5: 913ac2c9069d2ba44e05565a445810ab
+Patch0:                %{name}-rescan-scsi-bus.sh.patch
 URL:           http://sg.danny.cz/sg/sg3_utils.html
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
diff --git a/sg3_utils-rescan-scsi-bus.sh.patch 
b/sg3_utils-rescan-scsi-bus.sh.patch
new file mode 100644
index 0000000..1a0da7f
--- /dev/null
+++ b/sg3_utils-rescan-scsi-bus.sh.patch
@@ -0,0 +1,11 @@
+diff -ruNp sg3_utils-1.42.orig/scripts/rescan-scsi-bus.sh 
sg3_utils-1.42/scripts/rescan-scsi-bus.sh
+--- sg3_utils-1.42.orig/scripts/rescan-scsi-bus.sh     2016-02-02 
05:21:27.000000000 +0100
++++ sg3_utils-1.42/scripts/rescan-scsi-bus.sh  2018-02-08 12:17:16.792117671 
+0100
+@@ -241,6 +241,7 @@ testonline ()
+   sg_turs /dev/$SGDEV >/dev/null 2>&1
+   RC=$?
+ 
++  ctr=0
+   # Handle in progress of becoming ready and unit attention
+   while test $RC = 2 -o $RC = 6 && test $ctr -le 30; do
+     if test $RC = 2 -a "$RMB" != "1"; then echo -n "."; let LN+=1; sleep 1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sg3_utils.git/commitdiff/7cbb11c67de476c768c8c5836468f73eb7491631

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to