Avoid makepkg to let src/ directory after updating the sums

Signed-off-by: Sébastien Luttringer <[email protected]>
---
 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


Reply via email to