commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8789 - trunk/gnue-common/src/utils


From: reinhard
Subject: [gnue] r8789 - trunk/gnue-common/src/utils
Date: Sun, 15 Oct 2006 19:09:00 -0500 (CDT)

Author: reinhard
Date: 2006-10-15 19:08:59 -0500 (Sun, 15 Oct 2006)
New Revision: 8789

Modified:
   trunk/gnue-common/src/utils/version.py
Log:
Fix for the case when the main module directory is a link (this is the case for
.cvsdevelbase).


Modified: trunk/gnue-common/src/utils/version.py
===================================================================
--- trunk/gnue-common/src/utils/version.py      2006-10-15 23:59:16 UTC (rev 
8788)
+++ trunk/gnue-common/src/utils/version.py      2006-10-16 00:08:59 UTC (rev 
8789)
@@ -56,6 +56,9 @@
     if os.name != 'posix':
         return 'unknown'
 
+    if os.path.islink(directory):
+        directory = os.readlink(directory)
+
     cmd = ("LANG=C svn info %s | grep 'Last Changed Rev:' " + \
             "| sed -e 's/Last Changed Rev: //'") % directory
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]