aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cleanup.rb
AgeCommit message (Collapse)Author
2015-04-17Move can_cleanup? off of the formula instanceJack Nagel
2015-04-17Ask the formula if it can be cleaned up onceJack Nagel
2015-04-17Simplify cleanup eligibility checkJack Nagel
2015-04-16cleanup: add --prune to delete old cache files.Mike McQuaid
2015-04-07Remove duplication from cleanup methodsJack Nagel
2015-04-07cleanup: display file-sizesDominyk Tiller
Closes #38404
2015-04-01Use pkg_version when comparing against keg versionsJack Nagel
2015-03-07cleanup: optimize perfermanceXu Cheng
Only remove .DS_Store files from whitelisted directories. Closes #37409. Signed-off-by: Xu Cheng <xucheng@me.com>
2014-12-27Use version attribute directly in cache comparisonsJack Nagel
The bug that prompted the two relevant commits has since been addressed. Squashed commit of the following: commit ecca17ede8324efd1175a42300ace8e1e2df30fa Author: Jack Nagel <jacknagel@gmail.com> Date: Sat Dec 27 16:16:12 2014 -0500 Revert "Don't use pkg_version when cleaning the cache" This reverts commit 4d511b5169d78a5d44bbf6c36c17f0c28014a614. commit e8935de08f6440ae1874ce523f93b19da6b68df3 Author: Jack Nagel <jacknagel@gmail.com> Date: Sat Dec 27 16:16:12 2014 -0500 Revert "Fix cleanup for head-only formulae" This reverts commit 510267ffd314c296c0b0969dd27d130a249f16e2.
2014-12-16Use quiet_system to avoid the shellJack Nagel
2014-10-19cleanup: only clean cache if it exists.Mike McQuaid
Closes #33297.
2014-06-24Use Keg#uninstall to clean up kegsJack Nagel
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-05-17only clean logs if logs existAdam Vandenberg
Closes #29355.
2014-05-14cleanup: prune old build logsJack Nagel
Closes #29231.
2014-03-22Don't send, just call the method directlyJack Nagel
2014-03-06Fix cleanup for head-only formulaeJack Nagel
Fixes #27265.
2014-03-05Don't use pkg_version when cleaning the cacheJack Nagel
Fixes #27245.
2014-03-05Teach commands to work with revisionsJack Nagel
2013-06-21Don't clean up lockfiles if the directory doesn't existJack Nagel
Fixes #20673.
2013-06-21Clean up lockfilesJack Nagel
2013-06-06cleanup: use String#[] instead of "captures.first rescue nil"Jack Nagel
2013-05-18Stop running "prune" as part of "cleanup"Jack Nagel
Rationale: "prune" is slow, does not need to be run as often as "cleanup", and is potentially destructive to things like empty directories that Homebrew did not create. Thus we should let users run `brew prune` only when they wish to, while still being able to use `brew cleanup`. Closes #19863.
2013-05-15cleanup: enable prune during dry-run modeJack Nagel
Closes #19826.
2013-05-15cleanup: cleanup_all => cleanup_cellarJack Nagel
2013-05-15cleanup: refactor cleanup_cacheJack Nagel
2013-05-15cleanup: rename variableJack Nagel
2013-05-15cleanup: refactor cleanup_formulaJack Nagel
2013-05-15cleanup: only map dirs to kegs onceJack Nagel
2013-05-15cleanup: use Pathname#rmtree instead of FileUtilsJack Nagel
2013-05-15cleanup: use subdirs, avoid .directory? checksJack Nagel
2013-05-15cleanup: remove redundant conditionJack Nagel
If f.installed? is true, f.rack.directory? will always be true as well.
2013-05-15cleanup: rename method for consistencyJack Nagel
2013-05-15cleanup: use early return rather than method-spanning conditionalJack Nagel
2013-05-15cleanup: factor out unqualified cleanup codeJack Nagel
2013-05-15Methods that end in _formula should only accept a formulaJack Nagel
2013-03-02cleanup: don't remove old incomplete files twice.Mike McQuaid
2013-02-18Remove unused variablesJack Nagel
2013-02-02Make `CurlDownloadStrategy` resume aborted downloadsSimon Sigurdhsson
* `CurlDownloadStrategy#_fetch` (and the same methods in its subclasses) now fetches the file to a temporary path, and `CurlDownloadStrategy#fetch` moves it to the correct location. * `Homebrew#cleanup` cleans the temporary files `CurlDownloadStrategy` creates if they're left in the cache. Closes #13953. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-26brew-cleanup: don't whine about permission denied.Mike McQuaid
Closes #14359.
2013-01-08Don't remove linked formulas when doing a 'cleanup'Mike Lapinsky
Closes #16947. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-12-19cleanup: fix 1.8.6 compatibilty issueJack Nagel
Fixes #16655.
2012-12-16Check if Cellar and Cache exist before cleaning.Mike McQuaid
2012-12-04brew-cleanup: check whether keg is a directory.Xiyue Deng
* Avoid problem when encountering `.DS_Store' in Cellar. Closes #16356. Closes #16388. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-11-30brew cleanup: don't remove higher version kegs.Xiyue Deng
* Use version compare to only remove kegs with lower version than the current one, not higher version which might be from someone's branch. * Do the same for cache cleanup. - Be conservative so that if a name detected from cache file is not the same as its formula then don't clean it. Closes #15914. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-09-22brew cleanup -n: less scaryMax Howell
2012-09-20cleanup: look for "HEAD", not "sha" in receiptJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11cleanup: skip rm_DS_Store during a dry runJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11cleanup: allow --force to remove keg-only brews againJack Nagel
Fixes #14840. Signed-off-by: Jack Nagel <jacknagel@gmail.com>