[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-09-12 Thread Julian Andres Klode
JFTR, in case anyone is looking at this: The fix for xenial and trusty has been merged into the fix for 1737441, and was fixed there, as the regression that manifested in this bug due to the fix for 1737441 never manifested in those releases, as there was no upload with just that fix. -- You

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-07-10 Thread Julian Andres Klode
** Description changed: - == xenial / trusty == - [Impact] - Some applications, like unattended-upgrades or update-manager, reopen the apt cache. They also keep around old apt.Package objects however, and operate on them after reopening. Under the hood, this means that

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-07-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: update-manager (Ubuntu Trusty) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python-apt in Ubuntu.

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-07-04 Thread Julian Andres Klode
** Also affects: python-apt (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: update-manager (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: python-apt (Ubuntu Trusty) Importance: Undecided Status: New ** Also affects:

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-07-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python-apt (Ubuntu Xenial) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python-apt in Ubuntu.

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-07-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python-apt (Ubuntu Trusty) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python-apt in Ubuntu.

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-07-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: update-manager (Ubuntu Xenial) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python-apt in Ubuntu.

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-07-04 Thread Julian Andres Klode
This update causes a regression that is tracked in bug 1780099 - notably the __hash__ of an apt.Package can change after opening, so if used in a set, or as a dict key, the package won't be found anymore. The regression is less worse than the previous state, but will be fixed shortly. -- You

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-06-18 Thread Launchpad Bug Tracker
This bug was fixed in the package python-apt - 1.6.1 --- python-apt (1.6.1) unstable; urgency=medium * apt: Fix typing errors to get CI pass again * apt.Cache: Remap objects when reopening cache (LP: #1773316) * apt_pkg.DepCache: Raise CacheMismatchError if argument belongs to

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-06-11 Thread Julian Andres Klode
I also ran unattended-upgrades and aptdcon --system-upgrade, both of which performed normally. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python-apt in Ubuntu. https://bugs.launchpad.net/bugs/1773316 Title: Object of

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-06-11 Thread Julian Andres Klode
Fix works fine: root@bionic:~# python3 -c "import apt; c=apt.Cache(); p=c['aptitude']; c.open(); p.mark_install()" Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3/dist-packages/apt/package.py", line 1469, in mark_install

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-06-11 Thread Steve Langasek
Hello errors.ubuntu.com, or anyone else affected, Accepted python-apt into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/python-apt/1.6.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-06-08 Thread Launchpad Bug Tracker
This bug was fixed in the package python-apt - 1.7.0~alpha0~ubuntu3 --- python-apt (1.7.0~alpha0~ubuntu3) cosmic; urgency=medium * apt.Cache: Fix error in apt.Package caching * apt: Fix typing errors and use mypy --strict * Correctly handle missing candidate in

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-06-06 Thread Julian Andres Klode
** Description changed: + [Impact] + python-apt 1.6 raises an exception when objects of an old cache are passed to a apt_pkg.DepCache methods for a different cache. Prior to that, those would either segfault, succeed, or silently operate on a different object, as they use package/version ids,

[Touch-packages] [Bug 1773316] Re: Object of different cache passed as argument to apt_pkg.DepCache method

2018-06-06 Thread Julian Andres Klode
** Summary changed: - /usr/bin/update-manager:ValueError:foreach_cb:packages_are_selected:is_selected:marked_install + Object of different cache passed as argument to apt_pkg.DepCache method -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which