Skip to content

If build directory already exists, makepkg fails when trying to creating the build directory again #964

Open
@wreedb

Description

@wreedb

Version: Aura 4.0.8 - installed with the aura package

I was installing an (aur) package today, however I erroneously pressed 'u' at the
:: Proceed with installation? [Y/n] prompt instead of Y or N. Whoops, happens to the best of us.
(This prompt was to install the AUR package directly after being built, the last step in the process)
This caused aura to fail citing:
aura :: A call to pacman -U failed.
Which of course makes perfect sense, that is exactly what happened.

So I ran the installation command again, which was aura -A ov
At this stage the command failed as makepkg was trying to create the build directory again, during the prepare() function.

This makes sense since it's just makepkg failing the build because of the directory already being there.
This happens seemingly regardless of using aura -Ac, which I'm guessing is because it removes the build directory after installation is completed?

The remedy is to go to ~/.cache/aura/builds (or your makepkg.conf BUILDDIR) and remove the directory corresponding to the package.

I think this could be handled a lot more gracefully, but if you disagree, feel free to close the issue (I wont argue).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions