Quoting Josh Triplett (2020-09-26 06:28:18)
> mmdebstrap seems to re-download packages every time it runs. I'd love to have
> a way to cache those packages, so that it can run substantially faster the
> second and subsequent times.

Do one thing and do it well.

I'm sure you are aware of apt-cacher or apt-cacher-ng?

In other situation, for example the mmdebstrap testsuite, I built my own
caching mechanism:

https://sources.debian.org/src/mmdebstrap/0.7.1-1/make_mirror.sh/

Adding a cache is so simple, you can use a snippet of Python from this pull
request of mine:

https://salsa.debian.org/debian/devscripts/-/blob/d1c6f2f6a3dca51b77a4a9b37c7d68c1d69270dd/scripts/debbisect#L113

But why add it to mmdebstrap? That just adds additional complexity and feature
creep. It makes an already complex tool even more complex. Why not keep this
functionality in an additional piece of software?

Please convince me.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to