Lines Matching defs:sr
82 import pkg.server.repository as sr
294 raise sr.RepositoryInvalidError(str(repo_uri))
295 return sr.Repository(allow_invalid=allow_invalid, read_only=read_only,
509 sr.repository_create(repo_uri, version=version)
1456 except sr.RepositoryUnknownPublisher as e:
1459 except sr.RepositoryError as e:
1544 # sr.Repository.verify(..)
1573 if error == sr.REPO_VERIFY_BADMANIFEST:
1575 elif error in [sr.REPO_VERIFY_PERM, sr.REPO_VERIFY_MFPERM]:
1577 elif error == sr.REPO_VERIFY_BADHASH:
1579 elif error == sr.REPO_VERIFY_UNKNOWN:
1581 elif error == sr.REPO_VERIFY_BADSIG:
1583 elif error == sr.REPO_VERIFY_DEPENDERROR:
1585 elif error == sr.REPO_VERIFY_WARN_OPENPERMS:
1621 if error == sr.REPO_VERIFY_WARN_OPENPERMS:
1652 allowed_checks = set(sr.verify_default_checks)
1668 if arg in sr.verify_default_checks:
1674 sr.verify_default_checks)), cmd=subcommand)
1690 if sr.VERIFY_DEPENDENCY not in allowed_checks and \
1712 if sr.VERIFY_DEPENDENCY in allowed_checks or not force_dep_check:
1715 repo = sr.Repository(root=repo_uri.get_pathname())
1782 """A method passed to sr.Repository.fix(..) to emit verify
1789 repo = sr.Repository(root=repo_uri.get_pathname())
1809 if status_code == sr.REPO_FIX_ITEM:
1819 elif status_code == sr.REPO_VERIFY_DEPENDERROR:
2353 except (apx.ApiException, sr.RepositoryError) as __e: