aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd/brew-graph
diff options
context:
space:
mode:
authorMike McQuaid2014-07-09 16:59:16 -0700
committerMike McQuaid2014-07-10 10:24:17 -0700
commit07f0f60908f8bd40b7032ebaadcf16371f2f2136 (patch)
treea84df1dd300109b93b162f5781e495a3c3baa2d2 /Library/Contributions/cmd/brew-graph
parent5fee415d45272fd19f9007271f58dae9f3b6ee7c (diff)
downloadbrew-07f0f60908f8bd40b7032ebaadcf16371f2f2136.tar.bz2
Deprecate some contributions.
This is just a starting point to start discussion. I think we have a few options with contributions: - Stop accepting them altogether and move the ones we need/use/support into core commands - Accept them on an unsupported basis and require they be added manually to the PATH - Actively support and fix bugs in them all Closes Homebrew/homebrew#30749. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Contributions/cmd/brew-graph')
-rwxr-xr-xLibrary/Contributions/cmd/brew-graph7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-graph b/Library/Contributions/cmd/brew-graph
index 07b3464b4..ab042cdbc 100755
--- a/Library/Contributions/cmd/brew-graph
+++ b/Library/Contributions/cmd/brew-graph
@@ -5,6 +5,7 @@ $ brew graph | dot -Tsvg -ohomebrew.html
$ open homebrew.html
"""
from __future__ import with_statement
+from __future__ import print_function
from contextlib import contextmanager
import re
@@ -14,7 +15,7 @@ import sys
def run(command, print_command=False):
"Run a command, returning the exit code and output."
- if print_command: print command
+ if print_command: print(command)
p = Popen(command, stdout=PIPE)
output, errput = p.communicate()
return p.returncode, output
@@ -361,4 +362,8 @@ def main():
if __name__ == "__main__":
+ print("""Warning: brew graph is unsupported and will be removed soon.
+You should use `brew deps --tree` instead.
+Please feel free volunteer to support it in a tap.
+ """, file=sys.stderr)
main()