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
 



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to