[CalendarServer-changes] [3929] CalendarServer/trunk/support/version.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Mar 27 08:23:51 PDT 2009


Revision: 3929
          http://trac.macosforge.org/projects/calendarserver/changeset/3929
Author:   wsanchez at apple.com
Date:     2009-03-27 08:23:51 -0700 (Fri, 27 Mar 2009)
Log Message:
-----------
Fix version string when building in B&I

Modified Paths:
--------------
    CalendarServer/trunk/support/version.py

Modified: CalendarServer/trunk/support/version.py
===================================================================
--- CalendarServer/trunk/support/version.py	2009-03-27 15:22:06 UTC (rev 3928)
+++ CalendarServer/trunk/support/version.py	2009-03-27 15:23:51 UTC (rev 3929)
@@ -49,15 +49,8 @@
             base_version += "-dev"
 
         if svn_revision == "exported":
-            if "RC_JASPER" in os.environ:
-                # Weird Apple thing: Get the B&I version number from the path
-                if source_root.startswith(os.path.sep):
-                    project_name = basename(source_root)
-                else:
-                    wd = source_root
-                    if wd:
-                        os.chdir(wd)
-                    project_name = basename(os.getcwd())
+            if "RC_JASPER" in os.environ and os.environ["RC_JASPER"] == "YES":
+                project_name = basename(os.environ["SRCROOT"])
 
                 prefix = "CalendarServer-"
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090327/32d8a608/attachment.html>


More information about the calendarserver-changes mailing list