Hi,

Quoting Benjamin Drung (2020-01-09 09:51:34)
> Our previous image build tool contained a script named
> test-package-selection. This tool was useful to quickly check if the
> specified sources list entries exist and the list of packages can be
> installed without conflicts. This was done by configuring the apt sources
> list, running "apt-get update" and then "apt-get install --simulate" with the
> list of selected packages. Executing this script took only a few seconds and
> gave us the confidence that the build process will most likely succeed.
> 
> It would be nice if mmdebstrap could gain a dry-run/simulation mode that
> does exactly this (construct sources list entries and run "apt-get install
> --simulate" on the packages list).

I think this is a good idea. I had a look at the code and I don't see anything
against adding a --simulate/--dry-run option that is not producing any tarball
or directory but only checks the given variant in combination with --include.
Of course hooks would not be executed during --simulate/--dry-run.

Unfortunately, I think it would be quite complex to implement this new option
properly due to the spaghetti-nature of the codebase. A lot of care has to be
taken to make the option work in any mode, variant, with --include and with all
the possible output options where mmdebstrap filters through tar, gzip or
tar2sqfs. So a lot of new testcases have to be added for that as well.

Since this is a bit more work, I will postpone this to later or wait for
somebody to write up a patch. :)

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to