summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fedora-cvs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fedora-cvs.py b/src/fedora-cvs.py
index 42aa1c5..2924566 100755
--- a/src/fedora-cvs.py
+++ b/src/fedora-cvs.py
@@ -14,8 +14,12 @@ PKG_ROOT = 'cvs.fedoraproject.org:/cvs/pkgs'
def read_cert_user():
"""Figure out the Fedora user name from ~/.fedora.cert. uses PyOpenSSL
"""
+ #if there is no user cert return None so that we default to anonymous checkout
+ if not os.access(cert_file, os.F_OK):
+ print "!!! You don't have a ~/.fedora.cert file !!!"
+ return None
- # Make sure we can even read the thing.
+ # Make sure we can even read the user cert if its there
cert_file = os.path.join(os.path.expanduser('~'), ".fedora.cert")
if not os.access(cert_file, os.R_OK):
print "!!! cannot read your ~/.fedora.cert file !!!"