Lines Matching defs:publisher
87 import pkg.client.publisher as publisher
612 """Refresh publisher metadata; this should only be used by
631 logger.warning(_("Skipping publisher metadata refresh;"
1319 if type(r) == publisher.RepositoryURI:
1599 """Private interface to perform publisher check on this image
1616 publisher configuration is a subset of the child image's
1617 publisher configuration. If we have any children, recurse
1618 into them and perform a publisher check."""
1715 publisher check before creating a plan for this image. only
2996 a full retrieval of publisher metadata (e.g. catalogs) or only
3000 'pubs' is a list of publisher prefixes or publisher objects
3005 a refresh should occur now. If False, a publisher's selected
3070 per-publisher basis.
3078 'pubs' is an optional list of publisher prefixes to restrict
3107 """Private function. Maps incorporations and publisher
3264 # Determine highest ranked publisher for package stems
3280 """Private helper function to retrieve publisher information
3287 repo = publisher.RepositoryURI(repo_uri)
3311 p.repository = publisher.Repository(
3362 # publisher.
3370 # Retrieve each publisher's catalog.
3574 excludes, publisher=pub):
3595 nrepo = publisher.Repository()
3596 opub = publisher.Publisher(pub.prefix,
3608 # Create a publisher and
3627 # Now consolidate all origins for each publisher under
3658 pub, - (string) the publisher of the package
3668 Results are always sorted by stem, publisher, and then in
3710 'pubs' is an optional list of publisher prefixes to restrict
3720 publisher should be returned. This option is ignored for
3721 patterns that explicitly specify the publisher to match.
3810 # determined and incorporation and publisher relationships
3843 # per-publisher basis.
3885 # publisher rank.
3893 # publisher.
3914 # this stem and publisher.
3936 # If caller requested results to be ranked by publisher,
3975 # publisher has been returned already, so skip
3978 # since publisher-specific patterns override
4001 # higher-ranked publisher has
4003 # this one since no publisher
4243 pfmri = fmri.PkgFmri(name=stem, publisher=pub,
4280 publisher should be returned. This option is ignored for
4281 patterns that explicitly specify the publisher to match.
4480 states=states, publisher=pub, version=release,
4719 # publisher being searched against.
4732 (query_number, publisher, (version, return_type, (results)))
4766 forms: the old deprecated form of a publisher, in a
4814 pub_uri = publisher.RepositoryURI(
4816 repo = publisher.Repository(
4819 pub = publisher.RepositoryURI(origin)
4820 repo = publisher.Repository(
4825 # Must be a publisher object.
5000 alt_pub = pkg_pub_map.get(pfmri.publisher, {}).get(
5021 """Add the provided publisher object to the image
5036 """Returns the highest ranked publisher object for the image."""
5040 """Retrieves a publisher object matching the provided prefix
5044 a copy of the publisher object should be returned instead
5057 """Attempts to retrieve publisher configuration information from
5058 the specified publisher's repository or the provided repository.
5062 If this operation is not supported by the publisher or the
5082 """Returns a list of the publisher objects for the current
5086 copies of the publisher objects should be returned instead
5097 catalog for a publisher was modified or None."""
5126 """Returns a boolean value indicating whether a publisher using
5131 """Removes a publisher object matching the provided prefix
5140 """Replaces an existing publisher object with the provided one
5144 whether a refresh of publisher metadata (such as its catalog)
5147 made to retrieve publisher metadata."""
5152 with self._img.locked_op("update-publisher"):
5167 """Private publisher update method; caller responsible for
5196 # The publisher is disabled, so no refresh
5201 # The publisher has been re-enabled, so
5220 # First, attempt to match the updated publisher object to an
5225 # Store the new publisher's id and the old
5226 # publisher object so it can be restored if the
5232 # If a matching publisher couldn't be found and
5237 # Next, be certain that the publisher's prefix and alias
5238 # are not already in use by another publisher.
5251 # publisher.
5260 # Now remove the old publisher object using the
5265 # Prepare the new publisher object.
5271 # Finally, add the new publisher object.
5292 # Remove the publisher's metadata (such as
5294 # in the event that a publisher is disabled or
5304 # One of the publisher's repository origins may
5305 # have changed, so the publisher needs to be
5312 # Validate all new origins against publisher
5316 repo = publisher.RepositoryURI(uri,
5325 # origin) for the publisher, so a refresh should
5332 # If any of the above fails, the original publisher
5338 # If any of the above fails, the original publisher
5424 """Reads the pkg(7) publisher JSON formatted data at 'location'
5426 list of tuples of the format (publisher object, pkg_names).
5428 FMRIs. If any pkg_names not specific to a publisher were
5536 """Writes the publisher, repository, and provided package names
5543 publisher prefix that contain package names, FMRI strings, or
5545 that are not specific to a publisher.
5547 'pubs' is an optional list of publisher prefixes or Publisher
5559 if not isinstance(p, publisher.Publisher):
5700 'prefix' is an optional publisher prefix to configure as a publisher
5701 for the new image if origins is provided, or to restrict which publisher
5703 match the publisher configuration retrieved from the repository, an
5711 publisher configuration data and metadata can be retrieved during
5716 retrieve publisher configuration information from. If the target
5726 configure all publishers with and to use when retrieving publisher
5731 publishers with and to use when retrieving publisher configuration
5772 # needed to retrieve publisher configuration information.
5795 repo = publisher.RepositoryURI(repo_uri)
5799 if (repo.scheme in publisher.SSL_SCHEMES or
5800 not any(o.scheme in publisher.SSL_SCHEMES
5831 publisher.Repository(
5856 repo = publisher.Repository()
5861 pub = publisher.Publisher(prefix,
5866 # If publisher prefix requested isn't found in the list
5880 # publisher configuration if provided.
5894 if o.scheme not in publisher.SSL_SCHEMES:
5899 if m.scheme not in publisher.SSL_SCHEMES:
5909 not any(o.scheme in publisher.SSL_SCHEMES