diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-22 04:29:07 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-22 04:29:07 -0300 |
commit | 6279830c8b0647d88a25f70a1fa537f2a26037fa (patch) | |
tree | 7abc55b4675ac5e28be9502b29632edf47cc7872 | |
parent | 9ab4d557b3294c61bdee3978be50f59c63b71c37 (diff) |
Remove cleanup list right after cleanup
-rwxr-xr-x | clean-pacman | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/clean-pacman b/clean-pacman index 0c22ef0..160a0f5 100755 --- a/clean-pacman +++ b/clean-pacman @@ -2,12 +2,14 @@ # Copyright 2012 Nicolás Reynolds <fauno@parabola.nu> Licensed under GPLv3 # # Smart cleanup of the chroot, restores chroot to its original state but also -# leaves the dependencies needed by the current package. +# leaves the dependencies already installed that are needed by the current +# package. In other words, it removes everything that's left. # # Useful when you're building a lot of packages one after another and they # share some dependencies. # -# Logic: tap into `makepkg -s` +# Logic: tap into `makepkg -sr`, collect required packages and remove the +# leftovers # # Use it as the PACMAN var for makepkg: `PACMAN=$0 makepkg` @@ -43,9 +45,10 @@ case $cmd in # At this point $0 is run as root pacman -Rn ${flags[@]} ${cleanup[@]} fi - ;; + # Remove the cleanup log at the end - -R) rm ${cleanup_log} ;; + rm ${cleanup_log} + ;; esac # Make makepkg dreams come true |