]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup.py: look for a tag named after APPNAME, not necessarily "allmydata-tahoe". 2340-version-error-reporting-2
authorDaira Hopwood <daira@jacaranda.org>
Fri, 21 Nov 2014 05:00:05 +0000 (05:00 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 21 Nov 2014 07:58:38 +0000 (07:58 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
setup.py

index 999c6c0241d969becc8a591af04d791b1105738b..a1f59fd174dbb096e10a30e6d8bb2ba075e108dc 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -362,7 +362,8 @@ class UpdateVersion(Command):
             print("Warning: no version information found. This may cause tests to fail.")
 
     def try_from_git(self):
-        versions = versions_from_git("allmydata-tahoe-")
+        # If we change APPNAME, the release tag names should also change from then on.
+        versions = versions_from_git(APPNAME + '-')
         if versions:
             f = open(VERSION_PY_FILENAME, "wb")
             f.write(GIT_VERSION_BODY %