This is fixing the error:
cannot rmdir /var/lib/apt/lists/auxfiles: Directory not empty at ./mmdebstrap/mmdebstrap line 3084.
which happens when using apt-transport-mirror.
yes, that regex was indeed missing the mirror prefix but there is an even better way to fix this problem which currently only exists on my local machine: instead of using apt inside the chroot, we can use apt from the outside to install packages on the inside. This has several advantages:
we can build chroots without apt (for example from buildinfo files)
we do not need to install additional packages like apt-transport-* or ca-certificates inside the chroot
we do not not need additional key material inside the chroot
we can make use of file:// and copy://
So essentially, the part of the code your first commit touches was completely removed.
Your auxfiles patch is still necessary though. What files does apt put into auxfiles? Does that only happen with mirror URIs?
This pull request can be merged automatically.
You are not authorized to merge this pull request.