I’m attempting to define a custom package manager so I can add the --no-install-recommends
flag. (This flag used to be present by default for the apt
package manager, but it was removed by this commit for some reason).
I don’t see any way to override the flags for a pre-defined package manager, so I created my own custom-manager
replacement:
custom-manager:
clean:
cmd: apt-get
flags:
- clean
install:
cmd: apt-get
flags:
- install
- --no-install-recommends
remove:
cmd: apt-get
flags:
- remove
- --auto-remove
refresh:
cmd: apt-get
flags:
- update
update:
cmd: apt-get
flags:
- dist-upgrade
flags:
- --yes
However, build-dir
now fails:
I: Base system installed successfully.
Error: Failed to manage repositories: No repository handler present
and I don’t see how to define a “repository handler”.
Ideally, it would be nice to just be able to override the flags for pre-defined package managers so I can specify that I want to add --no-install-recommends
to the flags for install
without having to define a whole new custom manager.