]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Add missed python-lesscpy for horizon
authoriberezovskiy <iberezovskiy@mirantis.com>
Mon, 13 Oct 2014 14:59:18 +0000 (18:59 +0400)
committerIvan Berezovskiy <iberezovskiy@mirantis.com>
Tue, 14 Oct 2014 11:37:32 +0000 (15:37 +0400)
Change-Id: Ieecbd3b91aafb1a7f229918402676ca08ed1c2cf
Closes-bug: #1380655

debian/control
tests/runtests.sh

index aac8393c271ee3666b3ab98656622e386bf56203..20bc0f03b0bdc0bd38e4fd38227a03531718db3e 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"