[vlc-commits] extras/tools: fix packages not found

Thomas Guillem git at videolan.org
Tue Oct 23 14:54:07 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Oct 23 12:01:50 2018 +0200| [2c6b7238b49af56c4d8a4b913e318ced93255502] | committer: Thomas Guillem

extras/tools: fix packages not found

It could happen when the version was not checked.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c6b7238b49af56c4d8a4b913e318ced93255502
---

 extras/tools/bootstrap | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index d9455be29a..5160fa8fb5 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -94,9 +94,12 @@ then
     NEEDED="$NEEDED nasm"
 else
     # found, need to check version ?
-    [ -z "$1" ] && return # no
-    gotver=`nasm -v | cut -d ' ' -f 3`
-    check_version nasm $gotver $1
+    if [ -z "$1" ];then
+        FOUND="$FOUND nasm"
+    else
+        gotver=`nasm -v | cut -d ' ' -f 3`
+        check_version nasm $gotver $1
+    fi
 fi
 }
 
@@ -107,9 +110,12 @@ then
     NEEDED="$NEEDED $1"
 else
     # found, need to check version ?
-    [ -z "$2" ] && return # no
-    gotver=`$1 --version | head -1 | sed s/'.* '//`
-    check_version $1 $gotver $2
+    if [ -z "$2" ];then
+        FOUND="$FOUND $1"
+    else
+        gotver=`$1 --version | head -1 | sed s/'.* '//`
+        check_version $1 $gotver $2
+    fi
 fi
 }
 
@@ -120,9 +126,12 @@ then
     NEEDED="$NEEDED $1"
 else
     # found, need to check version ?
-    [ -z "$2" ] && return # no
-    gotver=`$1 --version | head -1 | sed s/'.* '//`
-    check_version_majmin $1 $gotver $2
+    if [ -z "$2" ];then
+        FOUND="$FOUND $1"
+    else
+        gotver=`$1 --version | head -1 | sed s/'.* '//`
+        check_version_majmin $1 $gotver $2
+    fi
 fi
 }
 
@@ -166,7 +175,6 @@ case `uname` in
      ;;
 esac
 
-
 cat > Makefile << EOF
 MAKEFLAGS += -j$CPUS
 CMAKEFLAGS += --parallel=$CPUS



More information about the vlc-commits mailing list