aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/prune.rb
AgeCommit message (Collapse)Author
2016-12-13prune: don't remove top-level directories.Mike McQuaid
Even if they're empty we want to keep these top-level directories around as the installer has nicely created them with the correct permissions and this avoids potentially having to use `sudo` to recreate them.
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-11cmd/prune: fix Rubocop warnings.Mike McQuaid
2016-04-10Add all the top level commentsMax Nordlund
2016-04-06prune: handle broken app symlinksMartin Afanasjew
Remove broken symlinks from `/Applications` and `~/Applications` that were previously created by `brew linkapps`, but are no longer valid because formulae were uninstalled or the provided apps have changed.
2016-04-02remove migrate_tapsXu Cheng
We don't need to migrate the tapped formulae from symlink-based to directory-based structure any more. Instead, we add core tap install check for `brew update-report` which will be invoked by `brew update`.
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-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-27tap/untap/update/prune: remove obsolete method, add migrate_tapsXu Cheng
2014-09-27Don't warn about tap conflicts during pruningJack Nagel
Fixes Homebrew/homebrew#32710.
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-02-25only get counts if neededAdam Vandenberg
2014-02-23Always keep info filesAdam Vandenberg
Closes Homebrew/homebrew#26659.
2013-12-21prune: remove unnecessary .sortJack Nagel
2013-08-10Make usage of ObserverPathnameExtension more obviousJack Nagel
Remove use of globals. Closes Homebrew/homebrew#21795.
2013-05-15prune: add dry-run modeJack Nagel
2013-04-13Run `tap --repair` as part of `prune`Jack Nagel
And by extension, `cleanup`. Fixes Homebrew/homebrew#18658.
2013-02-18Don't shadow outer local variablesJack Nagel
2013-01-08Prune LinkedKegs relative to correct pathJack Nagel
Fixes Homebrew/homebrew#16948.
2012-11-06Hoist top-level directory list into a constantJack Nagel
2012-04-17Don't attempt to walk nonexistent directoriesJack Nagel
Fixes Homebrew/homebrew#11298. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01prune: remove info dir entries for pruned filesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-28Prune LinkedKegs tooMax Howell
2011-03-12Use + instead of /.Adam Vandenberg
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.