aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cleanup.rb
AgeCommit message (Collapse)Author
2017-03-31Brew cleanup: Continue on error removing kegJoshua McKinney
Fixes #2355 Create unremovable_kegs instance var Check cellar cleanup failure after full cleanup completes Use module_function in Homebrew::Cleanup as we never instantiate the class
2017-02-25Update brew's man page formatting and grammarEricFromCanada
Also update command specifications to match descriptions.
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-23Fix Style/GuardClause.Markus Reiter
2016-04-10Add all the top level commentsMax Nordlund
2016-01-04cleanup: move code away from cmd/Baptiste Fontaine
Closes Homebrew/homebrew#47484. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-30cleanup: display total disk space to be clearedRakesh
Closes Homebrew/homebrew#45642. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-18cmd/cleanup: cleanup java_cacheDominyk Tiller
2015-12-04cleanup: don't warn when skipping pinned formula.Corey Prophitt
Closes Homebrew/homebrew#46604. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-29cleanup: use installed_prefixes/installed_kegsXu Cheng
2015-10-08handle TapFormulaWithOldnameAmbiguityErrorXu Cheng
Closes Homebrew/homebrew#44705. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-06Remove incomplete files in cache on `brew cleanup`Forrest Fleming
Closes Homebrew/homebrew#44182. Closes Homebrew/homebrew#44349. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-22core file style updateXu Cheng
2015-08-18unnecessary calls to .select simplifiedBaptiste Fontaine
These are minor perf optimizations. Closes Homebrew/homebrew#43028. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-16cleanup: require threadDominyk Tiller
2015-08-17cleanup: speed up rm_DS_Store by multithreadXu Cheng
Before ``` $ time brew cleanup -s brew cleanup -s 0.73s user 3.52s system 58% cpu 7.297 total ``` After ``` $ time brew cleanup -s brew cleanup -s 0.69s user 2.57s system 139% cpu 2.341 total ``` Closes Homebrew/homebrew#42968. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-16cleanup: fix reversed prune time.Mike McQuaid
2015-08-16cleanup: tweak prune code.Mike McQuaid
2015-08-16cleanup: make --force less aggressiveMartin Afanasjew
Change behavior for `brew cleanup` as follows: - If `--force` is supplied, remove only outdated keg-only packages. - If `--prune=<days>` is supplied, remove both logs and cached downloads older than the specified number of days. Use `--prune=all` to remove all logs and cached downloads irrespective of age. - By default, remove logs after 14 days and cached downloads never. Also centralizes handling of `--prune`, thus removing duplicate logic. This is motivated by commit 17eee232838d4639b25f863aa342b1dda61b81bc that made `--force` much more aggressive and made it override whatever was specified via `--prune`, completely removing all: - outdated keg-only packages - cached downloads irrespective of age - logs irrespective of age This made it impossible to remove outdated keg-only packages without also deleting all cached downloads, which is at least inconvenient for people with limited bandwidth wanting to rebuild packages later. Closes Homebrew/homebrew#42970. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-14cleanup: avoid duplicated logicXu Cheng
Closes Homebrew/homebrew#42900. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-14add Formula.racksXu Cheng
Also exclude symlink when enumerating installed racks.
2015-08-13cleanup: remove SCM directories recursively.Mike McQuaid
2015-08-13cleanup: do cleanup even without a Cellar.Mike McQuaid
2015-08-13cleanup: remove more on --force or --prune.Mike McQuaid
Remove more logs, use the prune time period and remove version control checkouts when --force or --prune is used.
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-24bottle_resolve_version: return PkgVersionXu Cheng
2015-06-15cleanup: rescue TapFormulaAmbiguityError caused by Dependency#to_formulaXu Cheng
Closes Homebrew/homebrew#40682. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-07cleanup: use bottle_resolve_versionXu Cheng
Closes Homebrew/homebrew#40378. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-29cleanup: use Formula#full_nameXu Cheng
2015-05-27cleanup: load formula from rack and using ARGV.resolved_formulaeXu Cheng
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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#29355.
2014-05-14cleanup: prune old build logsJack Nagel
Closes Homebrew/homebrew#29231.
2014-03-22Don't send, just call the method directlyJack Nagel
2014-03-06Fix cleanup for head-only formulaeJack Nagel
Fixes Homebrew/homebrew#27265.
2014-03-05Don't use pkg_version when cleaning the cacheJack Nagel
Fixes Homebrew/homebrew#27245.
2014-03-05Teach commands to work with revisionsJack Nagel