projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72f7f2
)
raise an ObsError if SSL verification failed
author
Dawei Yang
<dawei.yang@intel.com>
Tue, 23 Oct 2012 06:52:49 +0000
(14:52 +0800)
committer
Dawei Yang
<dawei.yang@intel.com>
Tue, 23 Oct 2012 06:52:49 +0000
(14:52 +0800)
gitbuildsys/oscapi.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/oscapi.py
b/gitbuildsys/oscapi.py
index
57fa361
..
630bb23
100644
(file)
--- a/
gitbuildsys/oscapi.py
+++ b/
gitbuildsys/oscapi.py
@@
-25,6
+25,7
@@
Only APIs which are required by cmd_remotebuild present here.
import os
import urllib2
import M2Crypto
+from M2Crypto.SSL.Checker import SSLVerificationError
import ssl
from collections import defaultdict
@@
-159,6
+160,8
@@
class OSC(object):
except (urllib2.URLError, M2Crypto.m2urllib2.URLError, \
M2Crypto.SSL.SSLError), err:
pass
+ except SSLVerificationError:
+ raise ObsError("SSL verification error.")
if err:
raise ObsError("can't check if %s/%s exists: %s" % (prj, pkg, err))