Fix configExists properly
authorPaul Crowley <paul@lshift.net>
Tue, 01 Dec 2009 15:35:30 +0000
changeset 225 ff08fd5b1a62
parent 221 c4c3facf5d6b
child 226 b472627106df
Fix configExists properly
NEWS
src/init/dot-mercurial-server
src/mercurialserver/config.py
--- a/NEWS	Tue Nov 17 12:36:56 2009 +0000
+++ b/NEWS	Tue Dec 01 15:35:30 2009 +0000
@@ -12,7 +12,7 @@
 
 Upgrading: move the paths/hgrc entry in .mercurial-server to env/HGRCPATH,
 and add an entry under paths that reads 
-"authorizedkeys = ~/.ssh/authorized_keys"
+"authorized_keys = ~/.ssh/authorized_keys"
 
 ====================
 mercurial-server 0.9
--- a/src/init/dot-mercurial-server	Tue Nov 17 12:36:56 2009 +0000
+++ b/src/init/dot-mercurial-server	Tue Dec 01 15:35:30 2009 +0000
@@ -3,7 +3,7 @@
 
 [paths]
 repos = ~/repos
-authorizedkeys = ~/.ssh/authorized_keys
+authorized_keys = ~/.ssh/authorized_keys
 keys = /etc/mercurial-server/keys:~/repos/hgadmin/keys
 access = /etc/mercurial-server/access.conf:~/repos/hgadmin/access.conf
 
--- a/src/mercurialserver/config.py	Tue Nov 17 12:36:56 2009 +0000
+++ b/src/mercurialserver/config.py	Tue Dec 01 15:35:30 2009 +0000
@@ -27,9 +27,10 @@
 
 def configExists():
     try:
-        _getAuthorizedKeysPath()
+        getAuthorizedKeysPath()
         return True
-    except:
+    except Exception, e:
+        print e
         return False
 
 def getKeysPaths(): return _getPaths("keys")