From 173ea1162bf931d3251eb01a3192ae4c85620615 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 1 Oct 2018 22:58:29 +0200 Subject: [PATCH] also remove dpkg lock files --- mmdebstrap | 1 + test.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index d9bea18..d357112 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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() { diff --git a/test.sh b/test.sh index b7f98e2..5c61dde 100755 --- a/test.sh +++ b/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