Hello community,

here is the log from the commit of package sblim-testsuite for openSUSE:Factory 
checked in at 2017-12-11 18:56:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sblim-testsuite (Old)
 and      /work/SRC/openSUSE:Factory/.sblim-testsuite.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sblim-testsuite"

Mon Dec 11 18:56:16 2017 rev:4 rq:548563 version:1.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/sblim-testsuite/sblim-testsuite.changes  
2013-08-06 12:41:04.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.sblim-testsuite.new/sblim-testsuite.changes     
2017-12-11 18:56:18.695108625 +0100
@@ -1,0 +2,6 @@
+Sat Nov 15 23:39:00 UTC 2014 - Led <[email protected]>
+
+- fix bashisms in run.sh script
+  sblim-testsuite-1.3.0-fix-bashisms.patch
+
+-------------------------------------------------------------------

New:
----
  sblim-testsuite-1.3.0-fix-bashisms.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sblim-testsuite.spec ++++++
--- /var/tmp/diff_new_pack.FZnAvu/_old  2017-12-11 18:56:19.275081001 +0100
+++ /var/tmp/diff_new_pack.FZnAvu/_new  2017-12-11 18:56:19.279080810 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sblim-testsuite
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@
 BuildArch:      noarch
 Url:            http://sblim.wiki.sourceforge.net/
 Source0:        
http://prdownloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
+Patch0:         %{name}-1.3.0-fix-bashisms.patch
 Summary:        SBLIM Testsuite
 License:        EPL-1.0
 Group:          Development/Tools/Other
@@ -41,6 +42,7 @@
 
 %prep
 %setup
+%patch0 -p1
 
 %build
 %configure

++++++ sblim-testsuite-1.3.0-fix-bashisms.patch ++++++
diff -Ndur sblim-testsuite-1.3.0/run.sh 
sblim-testsuite-1.3.0-fix-bashisms/run.sh
--- sblim-testsuite-1.3.0/run.sh        2009-06-19 03:27:08.000000000 +0300
+++ sblim-testsuite-1.3.0-fix-bashisms/run.sh   2014-11-16 01:37:15.038203402 
+0200
@@ -31,7 +31,7 @@
 
 # First run the createFiles script, if it exists 
 cd $SYSTEM_PATH;
-if [[ -a ./createKeyFiles.sh ]]; then
+if [ -e ./createKeyFiles.sh ]; then
   ./createKeyFiles.sh
 fi
 cd -;
@@ -54,8 +54,8 @@
   shift
 
   # specify the user
-  if [[ -n "$COMMAND" && "$COMMAND" == "-u" ]]; then
-      if [[ -n "$1" ]]; then 
+  if [ -n "$COMMAND" -a "$COMMAND" = "-u" ]; then
+      if [ -n "$1" ]; then 
          USERID=$1;
       else
          echo "run.sh : Please specify a UserID after -u"; 
@@ -63,26 +63,26 @@
       fi
 
   # specify the user's password
-  elif [[ -n "$COMMAND" && "$COMMAND" == "-p" ]]; then
-      if [[ -z "$1" ]]; then 
+  elif [ -n "$COMMAND" -a "$COMMAND" = "-p" ]; then
+      if [ -z "$1" ]; then 
          echo "run.sh : Please specify a password for UserID $USERID after 
-p"; exit 1;
       else 
          PASSWORD=$1;
       fi
 
   # specify the hostname
-  elif [[ -n "$COMMAND" && "$COMMAND" == "-host" ]]; then
+  elif [ -n "$COMMAND" -a "$COMMAND" = "-host" ]; then
       HOSTNAME=$1;
 
   # specify the port
-  elif [[ -n "$COMMAND" && "$COMMAND" == "-port" ]]; then
+  elif [ -n "$COMMAND" -a "$COMMAND" = "-port" ]; then
       PORT=$1;
 
   # specify the namespace
-  elif [[ -n "$COMMAND" && "$COMMAND" == "-n" ]]; then
+  elif [ -n "$COMMAND" -a "$COMMAND" = "-n" ]; then
       NAMESPACE=$1;
 
-  elif [[ -n "$COMMAND" && "$COMMAND" == "-verbose" ]]; then
+  elif [ -n "$COMMAND" -a "$COMMAND" = "-verbose" ]; then
       VERBOSE="yes";
 
   fi
@@ -103,26 +103,26 @@
     export PORT=5988
 fi
 
-if [[ -n $USERID && -z $PASSWORD ]]; then
+if [ -n $USERID -a -z $PASSWORD ]; then
     echo "run.sh : Please specify a password for UserID $USERID : option -p"; 
     exit 1;
-elif  [[ -n $USERID && -n $PASSWORD ]]; then
+elif  [ -n $USERID -a -n $PASSWORD ]; then
     export SBLIM_TESTSUITE_ACCESS="$USERID:$PASSWORD@";
 fi
 
-if [[ -n $HOSTNAME ]]; then
+if [ -n $HOSTNAME ]; then
     export SBLIM_TESTSUITE_HOSTNAME="$HOSTNAME";
 fi
 
-if [[ -n "$PORT" ]]; then
+if [ -n "$PORT" ]; then
     export SBLIM_TESTSUITE_PORT="$PORT";
 fi
 
-if [[ -n $NAMESPACE ]]; then
+if [ -n $NAMESPACE ]; then
     export SBLIM_TESTSUITE_NAMESPACE="$NAMESPACE";
 fi
 
-if [[ -n $VERBOSE ]]; then
+if [ -n $VERBOSE ]; then
     export SBLIM_TESTSUITE_VERBOSE=1;
 fi
 
@@ -136,12 +136,12 @@
 RC=
 WBEMCLI_ENV=`env | grep WBEMCLI_IND | sed -e s/WBEMCLI_IND=//`;
 
-if [[ -n $WBEMCLI_ENV ]]; then
+if [ -n $WBEMCLI_ENV ]; then
     WBEMCLI_ALIAS=`head -1 $WBEMCLI_ENV | sed -e s/.*:' '//`
     echo "check if CIMOM is running - wbemgc 
$WBEMCLI_ALIAS$NAMESPACE:cim_managedelement";
     RC=`wbemgc $WBEMCLI_ALIAS$NAMESPACE:cim_managedelement 2>&1`;
 else
-    if [[ -n $SBLIM_TESTSUITE_ACCESS ]]; then
+    if [ -n $SBLIM_TESTSUITE_ACCESS ]; then
        echo "check if CIMOM is running - wbemgc 
$PROTOCOL://"$SBLIM_TESTSUITE_ACCESS$HOSTNAME":"$PORT$NAMESPACE":cim_managedelement";
        RC=`wbemgc 
$PROTOCOL://"$SBLIM_TESTSUITE_ACCESS$HOSTNAME":"$PORT$NAMESPACE":cim_managedelement
 2>&1`;
     else
@@ -150,7 +150,7 @@
     fi
 fi
 
-if [[ -n $RC ]]; then
+if [ -n $RC ]; then
     echo $RC | grep 'Exception' >/dev/null \
        && echo 'CIMOM NOT RUNNING ?' && exit 1;
     echo "OK";

Reply via email to