]> 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-3 125/head
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 08:41:45 +0000 (08:41 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
setup.py

index 83f8b75c03b69019c0ce135b5d60ede6afd8af54..0693e634761303901bd0416d10f64482b49694a5 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -366,7 +366,8 @@ 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 %