I modified postinst in control.tar.gz  in python-apport_0.108.4_all.deb.

Did contain :-

#!/bin/sh -e

# clean up old *.pyc stuff from broken previous versions so that the programs
# actually use the new library in the python path
if dpkg --compare-versions "$2" le-nl 0.33; then
    for i in apport_utils.pyc apport_utils.pyo problem_report.pyc 
problem_report.pyo; do
        rm -f /usr/lib/python2.4/site-packages/$i 
/usr/lib/python2.5/site-packages/$i
    done
    rm -rf /usr/lib/python2.4/site-packages/apport 
/usr/lib/python2.5/site-packages/apport
fi

# Automatically added by dh_pycentral
if which pycentral >/dev/null 2>&1; then
        pycentral pkginstall python-apport
        if grep -qs '^python-apport$' /var/lib/pycentral/delayed-pkgs; then
                sed -i '/^python-apport$/d' /var/lib/pycentral/delayed-pkgs
        fi
fi
# End automatically added section


Modified to be :-

#!/bin/sh -e

# clean up old *.pyc stuff from broken previous versions so that the programs
# actually use the new library in the python path

# Automatically added by dh_pycentral
if which pycentral >/dev/null 2>&1; then
        pycentral pkginstall python-apport
        if grep -qs '^python-apport$' /var/lib/pycentral/delayed-pkgs; then
                sed -i '/^python-apport$/d' /var/lib/pycentral/delayed-pkgs
        fi
fi
# End automatically added section


Not sure what $2 should have been set to, but my guess is " " as there was no 
currently install package to grab the version from.

Cheers
Graeme

-- 
Fails to configure apport after install/upgrade
https://bugs.launchpad.net/bugs/511711
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to