summaryrefslogtreecommitdiff
path: root/treepkg
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-22 18:47:21 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-22 18:47:21 -0300
commita323ff09d756dd06a559586467c84dbe78069060 (patch)
tree72ef17c8ece9b29e83634340cd78a5e3cba4ac10 /treepkg
parentcddf27b728fd46157685b3791245fed53393cb18 (diff)
Deprecate clean-pacman in favor of smart chcleanup
Chcleanup compares the currently installed packages with a clean system list of packages + the package dependencies and removes the leftovers. Treepkg runs it as pre-build hook, so FULLBUILDCMD finds only the needed dependencies.
Diffstat (limited to 'treepkg')
-rwxr-xr-xtreepkg5
1 files changed, 3 insertions, 2 deletions
diff --git a/treepkg b/treepkg
index 8ba2add..a22df71 100755
--- a/treepkg
+++ b/treepkg
@@ -203,8 +203,9 @@ if [ ${DEPTH} -eq 0 ]; then
pushd "${BUILDDIR}/${_pkg}" >/dev/null
sudo pacman -Syu --noconfirm
-# Pass the PACMAN env var to makepkg
- PACMAN=$(dirname $0)/clean-pacman ${FULLBUILDCMD}
+ ${HOOKPREBUILD}
+
+ ${FULLBUILDCMD}
# Run local release hook with $1 = $repo
${HOOKLOCALRELEASE} $(egrep ";${_pkg#*_};" "${BUILDORDER}" | cut -d';' -f6)