From 5246cb9aa5bdc390c793dc261b28f3439aaad4c0 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Thu, 12 Sep 2019 21:28:34 +0200 Subject: checkpkg: add option to avoid keeping the tmp dir In some cases, like default makechrootpkg execution, the temporary directory used to assemble the differences is not required. Add an option to checkpkg that allows to get rid of that directory after run and call it automatically like that in makechrootpkg. Signed-off-by: Levente Polyak --- makechrootpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makechrootpkg.in') diff --git a/makechrootpkg.in b/makechrootpkg.in index 90a812d..4238fc3 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -412,7 +412,7 @@ else msg2 "Downloading current versions" if pacman --noconfirm -Swdd --logfile /dev/null "${pkgnames[@]}"; then msg2 "Checking packages" - sudo -u "$makepkg_user" checkpkg + sudo -u "$makepkg_user" checkpkg --rmdir else warning "Skipped checkpkg due to missing packages" fi -- cgit v1.2.3-54-g00ecf