diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-30 18:27:00 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-30 18:27:00 -0500 |
commit | 42d3216254bb31c7a43c64df3b51bbb05c57cbd4 (patch) | |
tree | 6e389e438c91e14dad31d135b218ce4d9f54357f /src/chroot-tools | |
parent | de74c8b50e734128f4641a20e3c4812713366f40 (diff) |
libremakepkg: autoclean before building
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-x | src/chroot-tools/libremakepkg.gpl2 | 2 |
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 |