]> git.saurik.com Git - apt.git/commit
use pkgCache::VS instead of pkgDepCache::VS()
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 3 Feb 2016 11:58:23 +0000 (12:58 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 3 Feb 2016 12:50:00 +0000 (13:50 +0100)
commitcd907113561d5eb75054f981be3bcc22eee8db27
tree4ebe210982c5a334c5d88bbedec655f54e3afd8a
parent1051eb835914196e326a53f76ca706f4d422d633
use pkgCache::VS instead of pkgDepCache::VS()

The later just calls the earlier, but the later needs the fullblown
dependency cache to be initialized, which is a very costly operation and
isn't done anymore that early in the run as we would need to throw away
and rebuild it again after we got all the information about source pkgs.

As we end up with a nullptr for the pkgDepCache, we use a slightly
longer calling convention to make sure that we use the pkgCache
directly, avoiding nullptr induced segfaults and costly operations.

Git-Dch: Ignore
Reported-By: Balint Reczey <balint@balintreczey.hu>
apt-private/private-source.cc
test/integration/test-apt-get-build-dep [deleted file]
test/integration/test-apt-get-build-dep-file [new file with mode: 0755]
test/integration/test-apt-get-source [deleted file]
test/integration/test-apt-source-and-build-dep [new file with mode: 0755]