From a9266f1fed7669160f2471bd8f11aa5dcbe9305c Mon Sep 17 00:00:00 2001 From: vsaienko Date: Tue, 9 Jun 2015 09:12:20 +0300 Subject: [PATCH] Re-do offline compress after javascript lib or xstatic package is updated At the moment horizon compress static files once after install. Adding openstack-dashboard.triggers that will re-do offline compress if libjs-* or xstatic package is updated Change-Id: I39ad62d9e21fa00f60c2398a7740891dec0bf876 Closes-Bug: #1462248 --- trusty/debian/changelog | 8 ++++++++ trusty/debian/openstack-dashboard.postinst | 4 ++++ trusty/debian/openstack-dashboard.triggers | 19 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 trusty/debian/openstack-dashboard.triggers diff --git a/trusty/debian/changelog b/trusty/debian/changelog index 1d685eb..e40781c 100644 --- a/trusty/debian/changelog +++ b/trusty/debian/changelog @@ -1,3 +1,11 @@ +horizon (1:2014.2.2-1~u14.04+mos3) mos6.1; urgency=medium + + * Re-do offline compress after javascript lib is updated + LP: #1462248 + + -- Vasyl Saienko Tue, 9 Jun 2015 09:27:30 +0200 + + horizon (1:2014.2.2-1~u14.04+mos2) mos6.1; urgency=medium * Compile l10n strings at post-install diff --git a/trusty/debian/openstack-dashboard.postinst b/trusty/debian/openstack-dashboard.postinst index 77dcd20..fa82773 100644 --- a/trusty/debian/openstack-dashboard.postinst +++ b/trusty/debian/openstack-dashboard.postinst @@ -78,4 +78,8 @@ if [ "$1" = "configure" ]; then fi fi +if [ "$1" = "triggered" ] ; then + /usr/share/openstack-dashboard/manage.py compress --force +fi + #DEBHELPER# diff --git a/trusty/debian/openstack-dashboard.triggers b/trusty/debian/openstack-dashboard.triggers new file mode 100644 index 0000000..8dc50ec --- /dev/null +++ b/trusty/debian/openstack-dashboard.triggers @@ -0,0 +1,19 @@ +interest /usr/lib/python2.7/dist-packages/xstatic/pkg/angular_mock/data +interest /usr/lib/python2.7/dist-packages/xstatic/pkg/bootstrap_datepicker/data +interest /usr/lib/python2.7/dist-packages/xstatic/pkg/bootstrap_scss/data +interest /usr/lib/python2.7/dist-packages/xstatic/pkg/font_awesome/data +interest /usr/lib/python2.7/dist-packages/xstatic/pkg/hogan/data +interest /usr/lib/python2.7/dist-packages/xstatic/pkg/jasmine/data +interest /usr/lib/python2.7/dist-packages/xstatic/pkg/jquery_migrate/data +interest /usr/share/javascript/angular.js +interest /usr/share/javascript/d3 +interest /usr/share/javascript/jquery +interest /usr/share/javascript/jquery-metadata +interest /usr/share/javascript/jquery.quicksearch +interest /usr/share/javascript/jquery-tablesorter +interest /usr/share/javascript/jquery-ui +interest /usr/share/javascript/jsencrypt +interest /usr/share/javascript/qunit +interest /usr/share/javascript/rickshaw +interest /usr/share/javascript/spin.js +interest /usr/share/javascript/underscore -- 2.45.2