Comment 2 for bug 798177

Revision history for this message
Mike T (trustdarkness) wrote :

Ok, so, as I suspected, this is related to the python-apt api deprecation explained in bug 795132. This time the bug manifested itself in these two files:

/usr/lib/python2.6/dist-packages/AptUrl/AptUrl.py
/usr/lib/python2.6/dist-packages/AptUrl/Helpers.py

which are part of the apturl-common package. i've attached patches for these two files that fix the issue. There was only one equivalent I could not find in the new api. it appears on line 162 as part of an if block verifying proper package installation.

pkg._pkg.CurrentState != apt_pkg.CurStateInstalled

I could not find an equivalent to the package.CurrentState method that existed in pre 0.8.0 versions. The other 2 checks in place seem sufficient to me, but I added a FIXME all the same.