[pacman-dev] [PATCH] Add a --clearsource option to clear the source directory before build.
allan at archlinux.org
Wed Oct 2 23:20:16 EDT 2013
On 02/10/13 22:58, Lukas Jirkovsky wrote:
> To be honest I don't believe this option is useful at all. IMO one
> should write PKGBUILDs so that it works on subsequent rebuilds too.
> Also it can be implemented using alias/wrapper to run "rm -rf src/"
> before makepkg. But Alan mentioned it before and it was really simple
> to implement.
Hrm... "rm -r src/" is less keystrokes than "--clearsource" and an
alias of the form makepkg='rm -r src/; makepkg' would work.
I want other peoples opinions here. Is it worth adding this option? I
never strike the issues mentioned because I always build using the Arch
devtools scripts and so even if my PKGBUILD is not reentrant, there is
no issue. I think we can just close that bug report with the suggestion
of using an alias.
More information about the pacman-dev