Permalink
Browse files

Add cache-cleaning support for homebrew

  • Loading branch information...
xiongchiamiov committed Aug 17, 2012
1 parent 07db39e commit 965ffa7a90975e77b21611990a34871a801d4534
Showing with 3 additions and 6 deletions.
  1. +3 −6 pacman
View
9 pacman
@@ -518,9 +518,8 @@ case "$_POPT$_SOPT" in
"
;;
"Sc")
- _os_is HOMEBREW && _error "Function not implemented in homebrew"
-
_exec_ DPKG "apt-get clean"
+ _exec_ HOMEBREW "brew cleanup"
_exec_ YUM "yum clean expire-cache"
__FORCE="" \
_exec_ PORTAGE "
@@ -532,9 +531,8 @@ case "$_POPT$_SOPT" in
"
;;
"Scc")
- _os_is HOMEBREW && _error "Function not implemented in homebrew"
-
_exec_ DPKG "apt-get autoclean"
+ _exec_ HOMEBREW "brew cleanup -s"
_exec_ YUM "yum clean packages"
_FORCE="" \
_exec_ PORTAGE "
@@ -546,12 +544,11 @@ case "$_POPT$_SOPT" in
"
;;
"Sccc")
- _os_is HOMEBREW && _error "Function not implemented in homebrew"
-
_exec_ DPKG "rm -fv /var/cache/apt/*.bin
rm -fv /var/cache/apt/archives/*.*
rm -fv /var/lib/apt/lists/*.*
apt-get autoclean"
+ _exec_ HOMEBREW "rm -rf $(brew --cache)"
_exec_ YUM "yum clean all"
_FORCE="" \
_exec_ PORTAGE "rm -fv /usr/portage/distfiles/*.*"

0 comments on commit 965ffa7

Please sign in to comment.