use pkgAcquire::GetLock instead of own code
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 9 Nov 2014 18:04:54 +0000 (19:04 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Sun, 9 Nov 2014 20:45:55 +0000 (21:45 +0100)
commit7e04a6bf23d857db60afd2ec3d0f4a8271b1c597
tree81bb72a0619512369349cf82827cfc2ac2c55fe0
parentbf6ac7ca615922c23d1f3cf1963efc5be9c23e32
use pkgAcquire::GetLock instead of own code

Do the same with less code in apt-get. This especially ensures that the
lock file (and the parent directories) exist before we are trying to
lock. It also means that clean now creates the directories if they are
missing so we returned to a proper clean state now.

Git-Dch: Ignore
apt-pkg/acquire.cc
cmdline/apt-get.cc