forked from josch/mmdebstrap
also remove dpkg lock files
This commit is contained in:
parent
7deadcb988
commit
173ea1162b
2 changed files with 6 additions and 0 deletions
|
@ -1179,6 +1179,7 @@ sub setup {
|
|||
unlink "$options->{root}/var/lib/apt/extended_states";
|
||||
unlink "$options->{root}/var/lib/apt/lists/lock";
|
||||
unlink "$options->{root}/var/lib/dpkg/lock-frontend";
|
||||
unlink "$options->{root}/var/lib/dpkg/lock";
|
||||
}
|
||||
|
||||
sub main() {
|
||||
|
|
5
test.sh
5
test.sh
|
@ -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-mm/var/lib/systemd/catalog/database
|
||||
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
|
||||
sudo diff --no-dereference --brief --recursive debian-$dist-debootstrap debian-$dist-mm
|
||||
|
|
Loading…
Reference in a new issue