Skip dependency checks with `aura -A --nodeps`?
Summary
Aura's AUR(-A) mode does not support --nodeps flag, which (in -S repositories mode and in pacman itself) allows to install packages without their dependencies. It is marginally useful, because software packagers/maintainers sometimes mess up all the conflicts and provides sections.
Steps to reproduce
- Install plocate instead of mlocate. They conflict with each other, while not providing a full alternative.
- Try to install pacman-updatedb-hook^AUR with this command:
$ aura -A --nodeps pacman-updatedb-hook
Expected result
Should work, just as for $ aura -S --nodeps …
Actual result
$ aura -A --nodeps pacman-updatedb-hook
Invalid option `--nodeps'
Did you mean one of these?
--deps
--asdeps
Usage: aura ((-A|--aursync) PACKAGES | (-B|--save) | (-C|--downgrade)
...
Does --skipdepcheck do what you're looking for?
Yes, it does, thanks. I wonder, why
- It is different/renamed from
-S, - zsh completions are broken.
About the second point, e.g. --verbose is suggested but does not work no matter where you put it (although it fails with different error each time, which is funny).
However, wait a just a second here.
$ aura -A --skipdepcheck pacman-updatedb-hook
aura >>= Determining dependencies...
aura >>= AUR Packages:
pacman-updatedb-hook
aura >>= Continue? [Y/n] Y
aura >>= Building pacman-updatedb-hook...
aura >>= Building failed. Would you like to see the error? [Y/n] Y
==> ERROR: Could not resolve all dependencies.
aura >>= There was a makepkg failure.
aura >>= Would you like to continue anyway? [Y/n]
Right. --skipdepcheck assumes you're otherwise providing the dependencies somehow, at least at the pacman-level. Here pacman is still getting mad due to the missing dep. So either:
--skipdepcheckshould imply--nodepsto pacman automatically, or;- I should implement a
--nodepspassthrough for you as I do for all the other pacman flags.
Maybe both, for fine-grained control. Since aura is a wrapper for another tool, it naturally exposes wider API anyway.
Right. --skipdepcheck assumes you're otherwise providing the dependencies somehow, at least at the pacman-level. Here pacman is still getting mad due to the missing dep. So either:
Honestly I don't see what use this would have on its own.
If memory serves, someone asked for it for a very specific debugging scenario.