install-package should handle this. You maybe expect PkgSystemLock to return False if locking fails, but this can not work because the error messages are exposed using Exceptions. In fact, you should check the return value (if apt_pkg.PkgSystemLock:) and also catch Exceptions using try/except.
** Package changed: python-apt (Ubuntu) => install-package (Ubuntu) -- python2.5 crashed with SystemError in commit() https://bugs.launchpad.net/bugs/271875 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs