summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDennis Gilmore <dennis@ausil.us>2009-07-28 17:02:25 -0500
committerDennis Gilmore <dennis@ausil.us>2009-07-28 17:02:25 -0500
commitec56e2ef1d9f3e221b429d8c083db9ab662e2c0e (patch)
treee3c7a6252ecb2fa88295a47f88000035292f7960 /src
parenta77a5b8fb32c612685dec684404dd5384dbbff37 (diff)
downloadfedora-packager-ec56e2ef1d9f3e221b429d8c083db9ab662e2c0e.tar.gz
fedora-packager-ec56e2ef1d9f3e221b429d8c083db9ab662e2c0e.tar.xz
fedora-packager-ec56e2ef1d9f3e221b429d8c083db9ab662e2c0e.zip
default cvs checkouts to anonymous when there is no user cert
https://bugzilla.redhat.com/show_bug.cgi?id=514108
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 !!!"