]> 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-1
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 05:30:00 +0000 (05:30 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
setup.py

index 668b441816838ff004c3c65ba869e0c128c415c9..09606eaff116bba8646c77272d54545cc5d4df75 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:
             version_info = {
                 "pkgname": self.distribution.get_name(),