Commit 811fa6fa authored by Urs Fleisch's avatar Urs Fleisch

Fix test in build-deb.sh.

parent e8abd0ab
...@@ -11,6 +11,7 @@ if test -n "$ppaversion"; then ...@@ -11,6 +11,7 @@ if test -n "$ppaversion"; then
if which ubuntu-distro-info >/dev/null; then if which ubuntu-distro-info >/dev/null; then
if distrib_nr=$(ubuntu-distro-info --series=$distribution -r 2>/dev/null); then if distrib_nr=$(ubuntu-distro-info --series=$distribution -r 2>/dev/null); then
distrib_nr=${distrib_nr/./} distrib_nr=${distrib_nr/./}
distrib_nr=${distrib_nr/ LTS/}
distrib_id=Ubuntu distrib_id=Ubuntu
elif distrib_nr=$(debian-distro-info --series=$distribution -r 2>/dev/null); then elif distrib_nr=$(debian-distro-info --series=$distribution -r 2>/dev/null); then
distrib_nr=${distrib_nr%.*} distrib_nr=${distrib_nr%.*}
...@@ -28,8 +29,8 @@ else ...@@ -28,8 +29,8 @@ else
distrib_id=$(lsb_release -si) distrib_id=$(lsb_release -si)
fi fi
if test $distrib_id = "Ubuntu" -a $distrib_nr -ge 1504 || if (test $distrib_id = "Ubuntu" && test $distrib_nr -ge 1504) ||
test $distrib_id = "Debian" -a $distrib_nr -ge 9; then (test $distrib_id = "Debian" && test $distrib_nr -ge 9); then
qtversion=5 qtversion=5
else else
qtversion=4 qtversion=4
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment