Looking at the postinst script it seems likely you want to compare to $? rather than $BINARY_IS_UWSGI_ALTERNATIVE. Although I'm not quite sure why you pipe through true in the last step since that will make sure 0 is always the return code. Grep returns 0 if a line was found, 1 if not and 2 if an error occured so to me it looks like you should be covered by that.
I did change the if statement on line 61 to if [ $? -eq 0 ]; then And that seems to work, at least the package installed without any errors and I got the /usr/bin/uwsgi_python3 link that ultimatly points at uwsgi-core. While checking the alternatives I realized that I had the python2-plugin installed so I uninstalled it and got python3 working. Now I just have sort out some other uwsgi-configuration issue and I'll be all good. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1616497 Title: uwsgi-plugin-python3 failed to install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/uwsgi/+bug/1616497/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
