1 From 888c8f594b3b56a374710b06bf5f32fc8aaf06c8 Mon Sep 17 00:00:00 2001
2 From: "Sar Ashki, Babak" <Babak.SarAshki@windriver.com>
3 Date: Thu, 23 Jan 2020 14:33:13 -0800
4 Subject: [PATCH 5/5] Fix postinstall scriptlets to ontarget
6 rootfs assembly fails without this patch
8 meta-openstack/recipes-devtools/python/python-horizon_git.bb | 9 ++-------
9 1 file changed, 2 insertions(+), 7 deletions(-)
11 diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
12 index fa831cb..098604c 100644
13 --- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb
14 +++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
15 @@ -158,13 +158,8 @@ do_install_append() {
16 ln -fs openstack_dashboard/static ${DASHBOARD_SHARE_DIR}/static
19 -pkg_postinst_${SRCNAME} () {
20 - if [ -n "$D" ]; then
23 - # Regenerate the django static files
24 - sudo -u horizon /usr/bin/env python ${datadir}/openstack-dashboard/manage.py collectstatic --noinput --clear
26 +pkg_postinst_ontarget_${SRCNAME} () {
27 + sudo -u horizon /usr/bin/env python ${datadir}/openstack-dashboard/manage.py collectstatic --noinput --clear
30 PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone"