[Yt-svn] commit/yt: MatthewTurk: Fixing unbound vstring error
Bitbucket
commits-noreply at bitbucket.org
Fri Mar 18 13:04:27 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/84af45a4b560/
changeset: r3853:84af45a4b560
branch: yt
user: MatthewTurk
date: 2011-03-18 21:03:43
summary: Fixing unbound vstring error
affected #: 1 file (159 bytes)
--- a/yt/utilities/command_line.py Fri Mar 18 13:19:13 2011 -0600
+++ b/yt/utilities/command_line.py Fri Mar 18 13:03:43 2011 -0700
@@ -342,6 +342,7 @@
print
print "yt module located at:"
print " %s" % (path)
+ vstring = None
if "site-packages" not in path:
vc_type = _get_vcs_type(path)
vstring = _vcs_identifier[vc_type](path)
@@ -356,6 +357,10 @@
if opts.update_source:
_vcs_updater[vc_type](path)
print "Updated successfully."
+ elif opts.update_source:
+ print
+ print "You have to update this installation yourself."
+ print
if vstring is not None and opts.outputfile is not None:
open(opts.outputfile, "w").write(vstring)
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list