also remove dpkg lock files

This commit is contained in:
Johannes 'josch' Schauer 2018-10-01 22:58:29 +02:00
parent 7deadcb988
commit 173ea1162b
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1
2 changed files with 6 additions and 0 deletions

View file

@ -1179,6 +1179,7 @@ sub setup {
unlink "$options->{root}/var/lib/apt/extended_states"; unlink "$options->{root}/var/lib/apt/extended_states";
unlink "$options->{root}/var/lib/apt/lists/lock"; unlink "$options->{root}/var/lib/apt/lists/lock";
unlink "$options->{root}/var/lib/dpkg/lock-frontend"; unlink "$options->{root}/var/lib/dpkg/lock-frontend";
unlink "$options->{root}/var/lib/dpkg/lock";
} }
sub main() { sub main() {

View file

@ -139,6 +139,11 @@ for dist in stable testing unstable; do
sudo rm debian-$dist-debootstrap/var/lib/systemd/catalog/database sudo rm debian-$dist-debootstrap/var/lib/systemd/catalog/database
sudo rm debian-$dist-mm/var/lib/systemd/catalog/database sudo rm debian-$dist-mm/var/lib/systemd/catalog/database
fi fi
sudo rm debian-$dist-debootstrap/var/lib/dpkg/lock
# introduced in dpkg 1.19.1
if [ "$dist" = "unstable" ]; then
sudo rm debian-$dist-debootstrap/var/lib/dpkg/lock-frontend
fi
# check if the file content differs # check if the file content differs
sudo diff --no-dereference --brief --recursive debian-$dist-debootstrap debian-$dist-mm sudo diff --no-dereference --brief --recursive debian-$dist-debootstrap debian-$dist-mm