aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/fileutils.rb
AgeCommit message (Collapse)Author
2017-10-29Tweak use of with_envMike McQuaid
- Use it in more places where it saves code - Allow using symbolic keys for a cleaner interface - Use `HOMEBREW_GEM_*` instead of `GEM_OLD_*`
2017-10-13fileutils: deprecate rake DSLilovezfs
superenv and the `:ruby` requirement make a `rake` DSL unnecessary.
2017-08-22upgrade more urls to httpsViktor Szakats
2017-07-15FileUtils.make: don't bypass superenvMisty De Meo
2017-07-12Revert "FileUtils.make: don't bypass superenv"ilovezfs
2017-07-07FileUtils.make: don't bypass superenvMisty De Meo
2017-01-23fileutils: update Ruby documentation URLAlyssa Ross
2016-09-24Merge branch 'master' into mkdir_with_intermediatesMike McQuaid
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-23Style/Alias: Prefer `alias`.Markus Reiter
2016-09-20Make mkdir wrapper use mkdir_p to create intermediate directoriesMarc Savy
2016-09-13extend/fileutils: fix Rubocop warnings.Mike McQuaid
2016-08-18remove ruby 1.8 compatible codesXu Cheng
2016-08-17extend/fileutils: assume Ruby 2.Mike McQuaid
2016-05-03Fix a variable name in error message (#190)Toru Tanaka
2016-04-22Add a helper to determine make path on TigerMisty De Meo
2016-04-22stage: fix block signature back-compatibility under Ruby 1.8.7Andrew Janke
The new stage() signature introduced by #66 breaks back-compatibility under Ruby 1.8.7. This fixes it by switching back to a one-argument block signature and using a new class to wrap both the Resource and Mktemp info for the staging context, in a signature-back-compatible way. Addresses homebrew/homebrew-core#529. Closes #135. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-18brew test, install, update-test: add --keep-tmp optionAndrew Janke
Also enables sandbox for --interactive and --debug use of install and test, using automatic retention. Closes #66. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-05Merge pull request #27 from apjanke/test-bot-xml-filterAndrew Janke
test-bot: revise Step output transcoding and XML character filtering
2016-04-05FileUtils::mktemp pass gid to Etc.getgrgid as intilovezfs
We need to move the Snow Leopard fix down since Etc.getgrgid can't handle a string. Closes #31. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-02-21FileUtils::mktemp fix for OS X 10.6.7 and earlierilovezfs
FileUtils::fu_get_gid only started doing the conversion of the group to_s automatically from OS X 10.6.8 (ruby-1.8.7-p358) forward. OS X 10.6.7 (ruby-1.8.7-p174) would fail in brew's FileUtils::mktemp with the error "Error: can't convert Fixnum into String." Fixes Homebrew/homebrew#49045 Fixes Homebrew/homebrew#49348 Closes Homebrew/homebrew#49369. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-06make HOMEBREW_BREW_FILE a Pathname objectXu Cheng
Currently HOMEBREW_BREW_FILE is a String, while other of HOMEBREW_* variables are all Pathname. This commit unifies them all as Pathname, so it will not cause any confusion. Closes Homebrew/homebrew#48872. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-05Don't accidentally inherit group "wheel" from /tmpilovezfs
Because files on OS X are assigned the group of the directory in which they are created, using /tmp during the installation process would result in some installed files having the group "wheel" even though "admin" was intended. Thanks to Xu Cheng for suggesting a simpler location for the fix. Closes Homebrew/homebrew#45869 Closes Homebrew/homebrew#48732. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-29More API documentation.Mike McQuaid
And remove the documented stuff from the `example-formula.rb`. Closes Homebrew/homebrew#43241. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-01fileutils: use rm_rf to clean temp dirXu Cheng
Honestly, I don't know why git is broken under sandbox. But this seems fix the problem in Homebrew/homebrew#38978. Closes Homebrew/homebrew#39138. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-03-14Use Dir.mktmpdir instead of shelling out to mktempJack Nagel
Closes Homebrew/homebrew#37616.
2015-03-10Reduce scope of ensure block, remove conditionalsJack Nagel
2014-08-14Fix mktmp to be generic as-per SUS/BSD.xxxajk
Closes Homebrew/homebrew#31586. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-09Fix visibility of FileUtils extension methodsJack Nagel
2014-06-09Stop exposing mktemp as a public method on formula objectsJack Nagel
2014-03-14Use Formula#system and existing error handling in scons helperJack Nagel
Fixes Homebrew/homebrew#27553.
2014-02-28move scons helper to fileutilsAdam Vandenberg
2014-02-27Add an xcodebuild helper and deprecate system "xcodebuild"Jack Nagel
In the future we can remove the ENV munging branch from Formula#system. Closes Homebrew/homebrew#27081.
2013-12-14Extract HOMEBREW_TEMP constantJack Nagel
2013-10-06FileUtils#copy_metadata: update comment, versionMisty De Meo
2013-10-02Pass the mktemp prefix as an argumentJack Nagel
2013-10-02Fix mktemp directory namingJack Nagel
2013-03-28extend/fileutils: suppress discarded method definition warningsJack Nagel
2013-03-11Add with_system_path to run using system PATHs.Mike McQuaid
Needed for Linux compatibility.
2013-03-11Add current Ruby globals.Mike McQuaid
Allows access to the Ruby path. Needed for Linux porting.
2013-02-02Move ruby methods to FileUtils extensionJack Nagel
2012-09-27FileUtils: backport #copy_metadata fixMisty De Meo
Entry_#copy_metadata has a nasty bug that makes copying symlinks across filesystems fail. This lasted all the way through 1.9.3p194 before *finally* being fixed. This backports the official fix. Fixes Homebrew/homebrew#14710.
2012-09-25Clean up and improve build-error output and logsMax Howell
All logs are now stored from each command executed in Formula.install. Error output is truncated to five lines in an attempt to not overwhelm the user and to encourage users to read the error output and report the bug properly. Maybe we can get that figure up from 70% to 90%.
2012-08-29Don't catch build errorsMax Howell
2012-08-29Block form of chdir can only be used onceMax Howell
If you nest them, the library complains. So let's not do that. /cc @jacknagel
2012-08-29Ensure mktemp cleans up after itselfMax Howell
Ignore interrupts.
2012-05-01Fix Ruby warnings.Mike McQuaid
Fixes Homebrew/homebrew#11966.
2012-03-06Extend FileUtils rather than include itJack Nagel
Fixes Homebrew/homebrew#10729. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-05Move path utils out of formula.rbAdam Vandenberg
Make a new module for our FileUtils extensions and use that instead.