Lines Matching refs:origin

243                             "enable or disable origin(s) for a system "
676 # other per-origin/mirror properties
924 def add_origin(self, origin, priority=None, ssl_cert=None,
926 """Adds the specified origin to the repository.
928 'origin' can be a RepositoryURI object or a URI string. If
932 def dup_check(origin):
933 if self.has_origin(origin):
934 o = self.get_origin(origin)
937 origin)
939 origin)
941 self.__add_uri("origins", origin, dup_check=dup_check,
968 def get_origin(self, origin):
969 """Returns a RepositoryURI object representing the origin
970 that matches 'origin'.
972 'origin' can be a RepositoryURI object or a URI string."""
974 if not isinstance(origin, RepositoryURI):
975 origin = misc.url_affix_trailing_slash(origin)
977 if origin == o.uri:
979 raise api_errors.UnknownRepositoryOrigin(origin)
991 def has_origin(self, origin):
993 'origin' exists for the repository.
995 'origin' can be a RepositoryURI object or a URI string."""
997 if not isinstance(origin, RepositoryURI):
998 origin = RepositoryURI(origin)
999 return origin in self.origins
1032 def remove_origin(self, origin):
1033 """Removes the origin matching 'origin' from the repository.
1035 'origin' can be a RepositoryURI object or a URI string."""
1037 if not isinstance(origin, RepositoryURI):
1038 origin = RepositoryURI(origin)
1040 if origin == o.uri:
1043 origin.uri)
1048 raise api_errors.UnknownRepositoryOrigin(origin)
1083 def update_origin(self, origin, priority=None, ssl_cert=None,
1085 """Updates an existing origin object matching 'origin'.
1087 'origin' can be a RepositoryURI object or a URI string.
1092 if not isinstance(origin, RepositoryURI):
1093 origin = RepositoryURI(origin, priority=priority,
1096 target = self.get_origin(origin)
1097 target.priority = origin.priority
1098 target.ssl_cert = origin.ssl_cert
1099 target.ssl_key = origin.ssl_key
1100 target.proxies = origin.proxies
1298 return key in ("client_uuid", "disabled", "mirrors", "origin",
1339 if key == "origin":
1524 origin = origins[0]
1527 of the following origin(s):
1531 The catalog retrieved from one of the origin(s) listed above only
1538 This is either a result of invalid origin information being provided
1546 To resolve this issue, correct the origin information provided for
1557 pkg set-publisher -P -g {origin} {pub}
1559 """).format(origin=origin, prefix=self.prefix, pub=list(pubs)[0]))
1563 The origin(s) listed above contain package data for more than one
1570 "{origin} {pub}\n").format(
1571 origin=origin, pub=pfx))
1663 for origin, opath in self.__gen_origin_paths():
1670 osets[key].append(origin)
1725 def __get_origin_path(self, origin):
1732 hashlib.sha1(misc.force_bytes(origin.uri)).hexdigest())
1737 for origin in self.repository.origins:
1738 if not origin.disabled:
1739 yield origin, self.__get_origin_path(origin)
1743 on catalog from each origin."""
1762 # Discard anything that isn't an origin.
1765 # An origin was removed or disabled, so publisher should
1769 # Not an origin or origin no longer exists; either way,
1802 # If there's only one origin, then just symlink its catalog
1818 # If there's more than one origin, then create a new catalog
1826 for origin, opath in opaths:
1895 origin.uri)
2015 origin, progtrack=None, include_updates=False):
2017 origin. Returns a tuple of (changed, refreshed) where 'changed'
2023 # contains the origin specified.
2025 repo.origins = [origin]
2042 # origin so create one from our current publisher.
2074 for origin, opath in self.__gen_origin_paths():
2099 for origin, opath in self.__gen_origin_paths():
2104 origin, progtrack=progtrack,
2107 failed.append((origin, e))
2171 # * The origin for the publisher has changed.
2260 # Nothing more can be done (because the target origin