[pacman-dev] [PATCH] Add a --clearsource option to clear the source directory before build.
snowmaniscool at gmail.com
Thu Oct 3 11:27:01 EDT 2013
On Wed, Oct 2, 2013 at 11:20 PM, Allan McRae <allan at archlinux.org> wrote:
> 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.
Personally, I wouldn't use this option. To clean up my build directory, I
use "rm -rf src pkg *.pkg.tar.xz *.log" wich is usually in my bash history
so a few keystrokes is all I need .
More information about the pacman-dev