]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: make the "full version string" be "allmydata-tahoe/1.3.0" instead of "allmydat...
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 13 Feb 2009 05:37:38 +0000 (22:37 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 13 Feb 2009 05:37:38 +0000 (22:37 -0700)
This is webbish.  Thanks to kpreid for suggesting it.

src/allmydata/__init__.py
src/allmydata/scripts/common_http.py

index dacb8c6a19d827ddfdfd916bb76c74909e46bcf4..f86e2703fa384f5d335baaa73f243738b091c565 100644 (file)
@@ -25,7 +25,7 @@ except ImportError:
 # __full_version__ is the one that you ought to use when identifying yourself in the
 # "application" part of the Tahoe versioning scheme:
 # http://allmydata.org/trac/tahoe/wiki/Versioning
-__full_version__ = __appname__ + '-' + str(__version__)
+__full_version__ = __appname__ + '/' + str(__version__)
 
 hush_pyflakes = __version__
 del hush_pyflakes
index 0c7680e2a464ac0addaf71aba9557ccee5c5c4d8..dda3a9208a3efb2a7e7f50119c3a89a09b77a712 100644 (file)
@@ -44,7 +44,7 @@ def do_http(method, url, body=""):
         raise ValueError("unknown scheme '%s', need http or https" % scheme)
     c.putrequest(method, path)
     c.putheader("Hostname", host)
-    c.putheader("User-Agent", "tahoe_cli/%s" % allmydata.__full_version__)
+    c.putheader("User-Agent", allmydata.__full_version__ + " (tahoe-client)")
     c.putheader("Connection", "close")
 
     old = body.tell()