On 06/04/13 10:42, Sébastien Luttringer wrote:
On Sat, Apr 6, 2013 at 2:32 AM, Dave Reisner <d@falconindy.com> wrote:
On Sat, Apr 06, 2013 at 02:27:30AM +0200, Sébastien Luttringer wrote:
Avoid makepkg to let src/ directory after updating the sums
This has potential to incur unintended/unwanted side effects... I don't think this should be the default. You could potentially look at $BUILDDIR/src beforehand and only pass -c if the dir doesn't exist beforehand, but I'm not sure we want to play that game.
I don't see what kind of unintented/unwanted side effects this can occur. Unless you speak about --asroot. Is the following code could avoid us of those effects ?
export BUILDDIR=$(mktemp --directory -t updpkgsums.XXXXX) makepkg --clean
Using a completely separate build directory for this is probably the best approach. But then "makepkg --clean" is not enough. Rather a "rm -r BUILDDIR" would be needed. Allan