Fix crash when opening DepCache before Cache

Bug #1815188 reported by Julian Andres Klode
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
New
Undecided
Unassigned

Bug Description

[Impact]
apt search and probably other code crashes some time, as GetDepCache() in trusty does not call BuildCaches() first.

[Test case]
TODO, some apt search -o RootDir=<something> foobar

[Regression potential]
There may be some locking implications, as we build caches when opening depcache first, without locks. That said, the same code is in use in all post-trusty releases, and they work fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.