aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
AgeCommit message (Collapse)Author
2014-12-06Extract part of stage method to VCS strategy superclassJack Nagel
2014-12-06Remove years-old TODOJack Nagel
2014-12-06Demote FIXME to a normal commentJack Nagel
2014-12-06Mark private SubversionDownloadStrategy methodsJack Nagel
2014-12-06Move fetch implementation into VCS strategy superclassJack Nagel
2014-12-06Use start_with? instead of a regexpJack Nagel
2014-12-06Move SVN URL munging to initializeJack Nagel
2014-12-06Remove method that duplicates superclass implementationJack Nagel
2014-12-06Extract update from fetch in VCS strategiesJack Nagel
2014-12-06Add clone_repo to remaining VCS strategiesJack Nagel
2014-12-06Add repo_valid? to remaining VCS strategiesJack Nagel
2014-12-06Make repo_valid? privateJack Nagel
2014-12-06Make __path methods privateJack Nagel
2014-12-06Make cache_tag privateJack Nagel
2014-12-06Mark private VCSDownloadStrategy methodsJack Nagel
2014-12-05CurlDownloadStrategy: initialize attributes in initializerJack Nagel
The downloader is instantiated on-demand, so we no longer need the lazy initialization here.
2014-12-05Provide VCSDownloadStrategy#head?Jack Nagel
2014-12-05Stop supporting hg found in share/pythonJack Nagel
2014-12-03Make the git download strategy default to :branch => "master"Jack Nagel
Fixes #33437.
2014-10-19Use curl -d to pass query parameters in the bottle download strategyJack Nagel
Fixes #33355.
2014-10-07Simplify UnsafeSubversionDownloadStrategyJack Nagel
2014-10-05Remove last usage of StrictSubversionDownloadStrategyJack Nagel
This strategy is only used in one formula, so we can just replace it with a dependency. It could be done with a requirement, but since this is a low-impact change (it only matters for head builds on Leopard), I'm not sure it's worth the effort. The constant is retained for compatibility, though I could find only one other reference to it on GitHub, in a formula that was removed from core almost two years ago.
2014-08-24Add friendlier local file missing errorLarry Shaffer
Closes #26481. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-23Modify "git rev-parse --verify" args in "has_ref?"Dabrien 'Dabe' Murphy
Per the `git-rev-parse(1)` manpage: --verify Verify that exactly one parameter is provided, and that it can be turned into a raw 20-byte SHA-1 that can be used to access the object database. If so, emit it to the standard output; otherwise, error out. If you want to make sure that the output actually names an object in your object database and/or can be used as a specific type of object For example, git rev-parse "$VAR^{commit}" will make sure $VAR names an existing object that is a commit-ish (i.e. a commit, or an annotated tag that points at a commit). That actually means that: git rev-parse --verify af8e768e2bd3b4398bca033998f83b0eb8874914 will _always_ return the SHA-1 hash — regardless of whether or not that's actually a valid reference! Thus, when `GitDownloadStragtegy#update_repo` tries to check `has_ref?`, it mistakenly succeeds, and doesn't actually do a `git fetch origin`. The fix is to use: git rev-parse --verify "af8e768e2bd3b4398bca033998f83b0eb8874914^{commit}" Fixes #31045. Closes #31054. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-18Fix checking out recursive git submodulesMaurus Cuelenaere
When nested submodules appear in a git repository, the `git submodule foreach git checkout-index ..` command would fail because it would checkout at the root directory instead of in its parent(s)' folder. Eg: root/submodule1/submodule2 would be checked out in root/submodule2 Closes #30841. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-17Remove dead codeJack Nagel
This method is identical to the superclass implementation.
2014-07-17Remove special case for now-deprecated GitHub URLsJack Nagel
2014-07-16Remove more dead codeJack Nagel
2014-07-16Remove dead codeJack Nagel
Formula objects are always constructed with an explicit name, so we no longer need to special case an empty name or the name "__UNKNOWN__".
2014-07-05Use popen wrapperJack Nagel
Closes #30678.
2014-06-15Remove an unnecessary use of ARGV.build_head?Jack Nagel
2014-06-04Fix some places where encoding issues manifest on ruby 2.0Jack Nagel
2014-06-01Remove unnecessary use of Dir[]Jack Nagel
2014-06-01Remove no-op directory traversalJack Nagel
2014-05-13download_strategy: fix Git repo updating.Mike McQuaid
Git repositories should always be updated when the ref is a branch. They should be also updated if no ref was specified or if the ref isn’t present. This stops the repo being updated if we’re building a specific revision and it is present. Additionally, this stops the update barfing on repositories where we’re using a revision and there is no upstream `master` branch. Closes #29218.
2014-04-06Recognize and extract xar filesJack Nagel
2014-04-06Extract common decompression code to a methodJack Nagel
2014-04-06Handle untarred bzip2 filesJack Nagel
Fixes #28187.
2014-03-18Set bottle download strategy directlyJack Nagel
We know what strategy we want, so going through DownloadStrategyDetector is wasted work. Now we can remove those patterns from the detector and have two fewer branches each time through.
2014-03-18Reorder download strategy symbols by frequencyJack Nagel
2014-03-18Reorder download strategy regexps by frequencyJack Nagel
2014-02-21Adapt to Git 1.9's `submodule foreach` changesJosh Tilles
Closes #26871. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-15GitDownloadStrategy: fix typo'd parameter nameJack Nagel
This should be "resource", not "resources", though it works anyway because there is a also "resource" reader method.
2014-02-14GitDownloadStrategy: allow disabling of shallow cloneJack Nagel
Closes #25751. Closes #26730.
2014-02-14VCSDownloadStrategy: use REF_TYPES when extracting ref to useJack Nagel
2014-02-14VCSDownloadStrategy: document acceptable ref typesJack Nagel
2014-02-14GitDownloadStrategy: inline simple methodJack Nagel
2014-02-14GitDownloadStrategy: move constant to top of class bodyJack Nagel
2013-12-05fix typo in this noticeAdam Vandenberg
2013-12-03SubversionDownloadStrategy: handle changed repository URLJack Nagel
Fixes #22159.