summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-30 18:27:00 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-30 18:27:00 -0500
commit42d3216254bb31c7a43c64df3b51bbb05c57cbd4 (patch)
tree6e389e438c91e14dad31d135b218ce4d9f54357f /src
parentde74c8b50e734128f4641a20e3c4812713366f40 (diff)
libremakepkg: autoclean before building
Diffstat (limited to 'src')
-rwxr-xr-xsrc/chroot-tools/libremakepkg.gpl22
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chroot-tools/libremakepkg.gpl2 b/src/chroot-tools/libremakepkg.gpl2
index bc8a9be..1077b66 100755
--- a/src/chroot-tools/libremakepkg.gpl2
+++ b/src/chroot-tools/libremakepkg.gpl2
@@ -65,11 +65,13 @@ chroot_extract() {
chown -R nobody "$copydir"/{build,pkgdest,srcdest}
+ cp -a "$(which chcleanup)" "${copydir}/clean"
local file="$copydir/chrootextract"
echo '#!/bin/bash' > "$file"
echo '. /etc/profile' >> "$file"
echo 'export HOME=/build' >> "$file"
echo 'cd /build' >> "$file"
+ echo '/clean' >> "$file"
echo "sudo -u nobody ${MAKEPKG} $makepkg_args -o" >> "$file"
chmod 755 "$file"
archroot "$copydir" -r /chrootextract