tags 1069097 patch
thanks

If I'm not mistaken, the problem happens because the "compress" call
in the postinst fails.

At this moment, we still don't know if this is a bug in the compress
utility (from django), for acting wrongly on a correct input, or maybe
the input itself is wrong to begin with.

In either case, we want the build to always succeed. Given that this compress 
thing
is not an absolutely essential feature, I propose that we make the failure
to be non-fatal for the time being, as in the attached patch.

Thanks.
commit 409f01b976cbf90c6ff8d96cd24dd414276de694
Author: Santiago Vila <sanv...@debian.org>
Date:   Sat Nov 16 15:30:00 2024 +0100

    debian/openstack-dashboard.postinst: Make failures in compress to be 
non-fatal. Closes: #1069097.
    
    Show a warning message instead.

diff --git a/debian/openstack-dashboard.postinst 
b/debian/openstack-dashboard.postinst
index d24971322..73231729d 100644
--- a/debian/openstack-dashboard.postinst
+++ b/debian/openstack-dashboard.postinst
@@ -10,7 +10,12 @@ rebuild_static() {
        # Compress the JS and CSS with python-compressor and python-lesscpy
        if [ -x /usr/share/openstack-dashboard/manage.py ] ; then
                /usr/share/openstack-dashboard/manage.py collectstatic 
--noinput --clear
-               /usr/share/openstack-dashboard/manage.py compress --force
+               if ! /usr/share/openstack-dashboard/manage.py compress --force; 
then
+                       echo ""
+                       echo "Warning: compress failed, you might need to run 
this manually:"
+                       echo "/usr/share/openstack-dashboard/manage.py compress 
--force"
+                       echo ""
+               fi
        fi
 
        if [ -f /var/lib/openstack-dashboard/secret-key/.secret_key_store ]; 
then

Reply via email to