Searched refs:reason (Results 1 - 19 of 19) sorted by relevance

/pkg/src/modules/client/transport/
H A Dexception.py151 def __init__(self, proto, code=None, url=None, reason=None,
158 self.reason = reason
182 if self.reason:
183 s += " reason: {0}".format(self.reason)
200 self.reason)
220 def __init__(self, code, url=None, reason=None, repourl=None,
226 self.reason = reason
[all...]
H A Drepo.py1270 reason = _("The configuration file for the repository "
1273 reason=reason, repourl=self._url)
1278 reason=str(e), repourl=self._url)
1283 reason=str(e), repourl=self._url)
1333 reason=_("Search temporarily unavailable."),
1339 reason=str(e), repourl=self._url)
1344 reason=str(e), repourl=self._url)
1410 errno.EPROTO, reason=str(e),
1461 reason
[all...]
H A Dengine.py284 # and https://, but a more specific reason for
304 url, reason=proto_reason, repourl=urlstem,
398 respcode, url, reason=proto_reason,
414 reason = "Invalid HTTP status code " \
417 url=url, reason=reason,
H A Dtransport.py1148 reason="hash failure: expected: {0}"
1401 repouri_key[0], reason=str(e),
2172 e.reason = "Unable to parse repository's " \
/pkg/src/modules/client/
H A Dpkg_solver.py98 def __init__(self, reason_id, reason, fmris=EmptyI):
102 self.__reason = reason
115 def reason(self): member in class:DependencyException
366 reason = (N_("This version is excluded by a "
368 "reason for the freeze is: {2}"),
372 reason = (N_("This version is excluded by a "
377 _TRIM_FREEZE, reason)
802 # at the reason why.
1121 reason = (N_("This version is excluded by installed "
1125 _TRIM_INSTALLED_INC, reason)
[all...]
H A Dapi_errors.py2354 def __init__(self, cert, reason, *args, **kwargs):
2356 self.reason = reason
2360 "reason:\n{reason}\n").format(cert="/".join("{0}={1}".format(
2362 reason=self.reason) + CertificateException.__str__(self)
2369 def __init__(self, sig, reason, pfmri=None):
2372 self.reason = reason
[all...]
H A Dpublisher.py2664 reason = rev.extensions.get_extension_for_oid(
2667 reason = None
2668 raise api_errors.RevokedCertificate(cert, reason)
/pkg/src/modules/
H A Dfmri.py65 def __init__(self, fmri, reason, detail=None, nested_exc=None):
67 self.reason = reason
73 if self.reason == IllegalFmri.BAD_VERSION:
75 if self.reason == IllegalFmri.BAD_PACKAGENAME:
77 if self.reason == IllegalFmri.SYNTAX_ERROR:
566 raise IllegalMatchingFmri(e.fmri, e.reason,
H A Ddepotcontroller.py44 def __init__(self, reason):
45 Exception.__init__(self, reason)
/pkg/src/util/apache2/sysrepo/
H A Dsysrepo_p5p.py69 def __init__(self, query, reason):
71 self.reason = reason
74 return "Malformed query {0}: {1}".format(self.query, self.reason)
/pkg/src/modules/actions/
H A Ddepend.py309 ok, reason = Driver().check(self, pfmri.pkg_name)
313 errors.append(reason)
316 ok, reason = Cpu().check(self, pfmri.pkg_name)
320 errors.append(reason)
/pkg/src/tests/cli/
H A Dt_pkgdep.py179 def make_res_manf_1(self, proto_area, reason, include_os=False):
182 "type=require {pfx}.reason={reason} "
188 "type=require {pfx}.reason=baz "
191 reason, include_os=include_os)).format(
194 reason=reason
197 def make_full_res_manf_1(self, proto_area, reason, include_os=False):
198 return self.make_res_manf_1(proto_area, reason,
206 depend {pfx}.file=libc.so.1 {pfx}.path=lib {pfx}.path=usr/lib fmri={dummy_fmri} type=require {pfx}.reason
763 reason="{reason}", variable
[all...]
H A Dt_pkg_history.py110 self.pkg("history -o time,reason,finish", exit=2)
200 self.pkg("history -H -o start,operation,client,outcome,reason")
205 reason = " ".join(tmp[4:])
207 self.assertTrue(reason == "Bad Request")
226 self.pkg("history -H -o start,operation,client,outcome,reason")
232 reason = " ".join(tmp[4:])
235 self.assertTrue(reason == "Constrained")
358 "outcome", "reason", "snapshot", "start", "time", "user"]
/pkg/src/
H A Dpkgrepo.py1561 """Format a verify_tuple, of the form (error, path, message, reason)
1567 error, path, message, reason = verify_tuple
1571 reason["path"] = path
1601 lines = textwrap.wrap(reason["err"])
1605 reason["err"] = "\n" + err_str.rstrip()
1607 reason["err"] = lines[0]
1614 if key not in reason:
1617 key=verify_reason_headers[key], value=reason[key])
1623 elif "depend" in reason:
1624 return formatted_message, reason["depen
[all...]
H A Dsysrepo.py190 _("Unable to get image at {dir}: {reason}").format(
192 reason=str(err)))
H A Dclient.py318 adv_usage["freeze"] = _("[-n] [-c reason] [pkg_fmri_pattern] ...")
2105 usage(err["reason"], cmd=cmd)
2115 emsg(err["reason"])
2125 if "reason" in err:
2126 emsg(err["reason"])
2133 if "reason" in err:
2135 emsg(err["reason"])
2140 emsg(err["reason"])
2145 emsg(err["reason"])
2156 emsg(err["reason"])
[all...]
/pkg/src/modules/server/
H A Drepository.py1865 def __build_verify_error(self, error, path, reason):
1867 and a 'reason' dictionary containing more information about
1870 (error_code, message, path, reason)
1876 hsh = reason.get("fname")
1877 pfmri = reason.get("pkg")
1888 reason["fpath"] = fpath
1892 reason["fpath"] = fpath
1897 reason["hash"])
1898 del reason["hash"]
1901 reason["er
[all...]
/pkg/src/modules/lint/
H A Dengine.py850 _("Unable to get image at {dir}: {reason}").format(
852 reason=str(err)))
/pkg/src/tests/
H A Dpkg5unittest.py125 reason. Test cases can raise this to the framework
1460 reason why we wanted to skip this test"""
2056 for test,reason in result.skips:
2059 test, reason))
2569 # reason.
4472 if isinstance(e.reason, ssl.SSLError):

Completed in 105 milliseconds