Searched refs:sr (Results 1 - 13 of 13) sorted by relevance

/pkg/src/
H A Ddepot.py110 import pkg.server.repository as sr namespace
845 sr.repository_create(inst_root, properties=repo_props)
846 except sr.RepositoryExistsError:
849 except (api_errors.ApiException, sr.RepositoryError) as _e:
857 repo = sr.Repository(cfgpathname=repo_config_file,
862 except (RuntimeError, sr.RepositoryError) as _e:
885 except (sr.RepositoryError, search_errors.IndexingException,
892 except sr.RepositoryError as e:
904 except sr.RepositoryError as e:
H A Dpkgrepo.py82 import pkg.server.repository as sr namespace
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
[all...]
H A Dpull.py54 import pkg.server.repository as sr namespace
986 repo = sr.Repository(read_only=False,
988 except sr.RepositoryInvalidError as e:
1091 except sr.RepositoryUnknownPublisher:
H A Ddepot-config.py53 import pkg.server.repository as sr namespace
173 repository = sr.Repository(root=root, read_only=True)
/pkg/src/modules/publish/
H A Dtransaction.py50 import pkg.server.repository as sr namespace
247 sr.repository_create(self.path, version=3)
248 except sr.RepositoryExistsError:
251 except (apx.ApiException, sr.RepositoryError) as e:
256 repo = sr.Repository(properties=repo_props,
265 except sr.RepositoryInvalidError as e:
267 except sr.RepositoryError as e:
/pkg/src/modules/
H A Ddepotcontroller.py40 import pkg.server.repository as sr namespace
159 sr.repository_create(self.__dir)
160 except sr.RepositoryExistsError:
163 return sr.Repository(cfgpathname=self.__cfg_file,
/pkg/src/tests/cli/
H A Dt_pkgmerge.py1213 sr = self.get_repo(repodir)
1218 with open(sr.manifest(f), "r") as manf:
1229 [p.prefix for p in sr.get_publishers()])
1237 for pub in sr.get_publishers():
1238 cat = sr.get_catalog(pub=pub.prefix)
H A Dt_pkg_depotd.py51 import pkg.server.repository as sr namespace
984 rc = sr.RepositoryConfig(target=rcpath)
1000 except sr.RepositoryUnknownPublisher:
H A Dt_pkgrepo.py41 import pkg.server.repository as sr namespace
985 sr.RepositorySearchUnavailableError))
1464 self.assertRaises(sr.RepositoryFileNotFoundError, repo.file,
1483 self.assertRaises(sr.RepositoryFileNotFoundError, repo.file,
1501 self.assertRaises(sr.RepositoryFileNotFoundError, repo.file,
1503 self.assertRaises(sr.RepositoryFileNotFoundError, repo.file,
1505 self.assertRaises(sr.RepositoryFileNotFoundError, repo.file,
3346 self.assertRaises(sr.RepositoryInvalidError, sr.Repository,
/pkg/src/util/apache2/depot/
H A Ddepot_index.py45 import pkg.server.repository as sr namespace
52 # a global dictionary containing sr.Repository objects, keyed by
297 """Builds a dictionary of sr.Repository objects, keyed by the
342 repo = sr.Repository(root=path, read_only=True,
344 except sr.RepositoryError as e:
/pkg/src/util/publish/
H A Dpkgsurf.py92 import pkg.server.repository as sr namespace
746 target_repo = sr.Repository(read_only=dry_run,
748 except sr.RepositoryError as e:
/pkg/src/tests/
H A Dpkg5unittest.py84 import pkg.server.repository as sr namespace
3162 import pkg.server.repository as sr namespace
3164 repo = sr.repository_create(repodir,
3167 except sr.RepositoryExistsError:
3169 repo = sr.Repository(root=repodir,
3180 import pkg.server.repository as sr namespace
3181 return sr.Repository(read_only=read_only, root=repodir)
/pkg/src/modules/client/transport/
H A Dtransport.py64 import pkg.server.repository as sr namespace
295 frepo = sr.Repository(root=path,
330 except (sr.RepositoryError, apx.ApiException):

Completed in 280 milliseconds