diff -Nru horizon-14.0.1/debian/changelog horizon-14.0.1/debian/changelog --- horizon-14.0.1/debian/changelog 2018-11-27 19:17:30.000000000 +0000 +++ horizon-14.0.1/debian/changelog 2019-02-20 17:15:16.000000000 +0000 @@ -1,3 +1,14 @@ +horizon (3:14.0.1-0ubuntu2) cosmic; urgency=medium + + * d/python*-django-horizon.preinst: As of rocky, + /usr/share/openstack-dashboard/openstack_dashboard is a symlink created + with update-alternatives. Prior to rocky, files were copied to + /usr/share/openstack-dashboard/openstack_dashboard. This change ensures + the directory is removed if it is not a symlink prior to rocky + installation (LP: #1815948). + + -- Corey Bryant Wed, 20 Feb 2019 12:15:16 -0500 + horizon (3:14.0.1-0ubuntu1) cosmic; urgency=medium * d/gbp.conf: Create stable/rocky branch. diff -Nru horizon-14.0.1/debian/python3-django-horizon.preinst horizon-14.0.1/debian/python3-django-horizon.preinst --- horizon-14.0.1/debian/python3-django-horizon.preinst 1970-01-01 00:00:00.000000000 +0000 +++ horizon-14.0.1/debian/python3-django-horizon.preinst 2019-02-20 17:15:16.000000000 +0000 @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +openstack_dashboard="/usr/share/openstack-dashboard/openstack_dashboard" +if [ ! -L "$openstack_dashboard" ] && [ -d "$openstack_dashboard" ]; then + rm -rf "$openstack_dashboard" || : +fi + +#DEBHELPER# + +exit 0 diff -Nru horizon-14.0.1/debian/python-django-horizon.preinst horizon-14.0.1/debian/python-django-horizon.preinst --- horizon-14.0.1/debian/python-django-horizon.preinst 1970-01-01 00:00:00.000000000 +0000 +++ horizon-14.0.1/debian/python-django-horizon.preinst 2019-02-20 17:15:16.000000000 +0000 @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +openstack_dashboard="/usr/share/openstack-dashboard/openstack_dashboard" +if [ ! -L "$openstack_dashboard" ] && [ -d "$openstack_dashboard" ]; then + rm -rf "$openstack_dashboard" || : +fi + +#DEBHELPER# + +exit 0