Skip to content

Commit

Permalink
Improve Homebrew.versioninfo()
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Sep 16, 2016
1 parent bcc875a commit 2975acf
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -644,14 +644,11 @@ end

function versioninfo(;verbose=false)
Base.versioninfo(verbose)
brew(`--version`)
Base.Git.run(`log -1 '--pretty=format:Homebrew git revision %h; last commit %cr'`; dir=joinpath(prefix()))
Base.Git.run(`log -1 '--pretty=format:homebrew/core git revision %h; last commit %cr'`; dir=joinpath(prefix(), "Library", "Taps", "homebrew", "homebrew-core"))
Base.Git.run(`log -1 '--pretty=format:staticfloat/juliadeps revision %h; last commit %cr'`; dir=joinpath(prefix(), "Library", "Taps", "staticfloat", "homebrew-juliadeps"))

installed_pkgs = list()
println("$(length(installed_pkgs)) total packages installed:")
println("\n$(length(installed_pkgs)) total packages installed:")
println(join([x.name for x in installed_pkgs], ", "))
println()

translated_pkgs = filter(x -> x.tap == "staticfloat/juliatranslated", installed_pkgs)
println("$(length(translated_pkgs)) auto-translated packages installed:")
println(join([x.name for x in translated_pkgs], ", "))
println()
end

2 comments on commit 2975acf

@tkelman
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fails on 0.5, Base.Git doesn't exist any more

@tkelman
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@staticfloat you may have not gotten a notification, but go through CI first

Please sign in to comment.