Add missed python-lesscpy for horizon
authoriberezovskiy <iberezovskiy@mirantis.com>
Mon, 13 Oct 2014 14:58:14 +0000 (18:58 +0400)
committeriberezovskiy <iberezovskiy@mirantis.com>
Mon, 13 Oct 2014 15:26:19 +0000 (19:26 +0400)
Change-Id: I205fdb667845dc9848b318f861991af955a34e72
Closes-bug: #1380655

debian/control
tests/runtests.sh

index b72215b14fee2365d4c971569b6da7f375a61f8f..485f215060839c0a4edca852e8c143a8974faca5 100644 (file)
@@ -7,6 +7,7 @@ Build-Depends:
  pylint,
  python-all (>= 2.6.6-3~),
  python-django-nose,
+ python-lesscpy,
  python-mox,
  python-netaddr,
  python-nose,
@@ -35,6 +36,7 @@ Depends:
  python-iso8601 (>= 0.1.9),
  python-keystoneclient (>= 1:0.10.0),
  python-kombu (>= 2.5.0),
+ python-lesscpy,
  python-lockfile (>= 0.8),
  python-memcache,
  python-netaddr (>= 0.7.12),
index c0aa028779b22711fc3b6f6bd3422164b71f6b54..0e8f52f1ed2e7442d5fdf099eb8e9cbb43c679b6 100755 (executable)
@@ -4,6 +4,13 @@ RES=0
 
 case $1 in
    openstack-dashboard)
+      python -c "import lesscpy"
+      if [ $? -ne '0' ]; then
+         echo "We have missed lesscpy dependency"
+         RES=1
+         exit $RES
+      fi
+
       if [[ `cat /etc/*-release | head -n 1 | awk '{print $1}'` =~ Ubuntu ]]; then
          apache="apache2"
          page="horizon"