[pacman-dev] [PATCH] updpkgsums: Add --clean to makepkg call

Dave Reisner d at falconindy.com
Fri Apr 5 20:32:27 EDT 2013


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.

> Signed-off-by: Sébastien Luttringer <seblu at seblu.net>
> ---
>  contrib/updpkgsums.sh.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/updpkgsums.sh.in b/contrib/updpkgsums.sh.in
> index 7456553..cf3ce6a 100644
> --- a/contrib/updpkgsums.sh.in
> +++ b/contrib/updpkgsums.sh.in
> @@ -75,7 +75,7 @@ fi
>  	# Generate the new sums and try to unlink the file before writing stdin back
>  	# into it. This final precaution shouldn't fail based on the previous checks,
>  	# but it's better to be extra careful before unlinking files.
> -	newsums=$(makepkg --asroot -g -p "$buildfile") && rm -f "$buildfile" &&
> +	newsums=$(makepkg --asroot --clean -g -p "$buildfile") && rm -f "$buildfile" &&
>  	exec awk -v newsums="$newsums" '
>  	/^[[:blank:]]*(md|sha)[[:digit:]]+sums=/,/\)[[:blank:]]*(#.*)?$/ {
>  		if (!w) {
> --
> 1.8.2
>
>


More information about the pacman-dev mailing list