Lines Matching defs:publisher
61 import pkg.client.publisher as publisher
88 IMG_PUB_DIR = "publisher"
190 # Set if write_cache is actually a tree like /var/pkg/publisher
576 """Normalizes publisher SSL configuration data, storing any
641 ensure ssl_cert and ssl_key properties of publisher repository
732 img_dirs = ["cache/index", "cache/publisher",
734 "lost+found", "publisher", "ssl", "state/installed",
738 "index", "lost+found", "pkg", "publisher",
886 # If set, cache is structured like /var/pkg/publisher.
887 # get_cachedirs() will build paths for each publisher's
945 # If we haven't loaded the system publisher configuration, do
1035 network operations (such as publisher data retrieval) are
1075 # Now everything is ready for publisher configuration.
1077 # added at once without any publisher data retrieval.
1092 self.cfg.set_property("property", "publisher-search-order",
1095 # Ensure publisher search order is written.
1167 be written to, 'pub' is the prefix of the publisher that
1191 # in the publisher's file root.
1201 # /var/pkg/publisher.
1276 # publisher is returned so that in-memory state is
1289 0, and a boolean indicating whether or not this publisher is
1291 publisher is enabled"""
1308 """Return the highest ranked publisher."""
1311 "publisher-search-order")
1317 return publisher.Publisher(p)
1348 publisher=p,
1357 """Returns a boolean value indicating whether a publisher
1367 """Removes the publisher with the matching identity from the
1373 with self.locked_op("remove-publisher"):
1398 "publisher-search-order")
1402 # unranked publishers. Also, as publisher come and go via the
1435 """Moves publisher "being_moved" to before "staying_put"
1444 """Moves publisher "being_moved" to after "staying_put"
1487 # Cleanup publisher cert information; any certs not retrieved
1488 # retrieved during temporary publisher use need to be expunged
1524 """Sets the preferred publisher for packaging operations.
1527 a publisher; ignored if 'pub' is provided.
1530 a publisher; ignored if 'pub' is provided.
1533 publisher to set as the preferred publisher.
1543 "is a system publisher and cannot be "
1549 # If we've gotten to the publisher we want to make
1625 """Adds the provided publisher object to the image
1629 whether the publisher's metadata should be retrieved when adding
1634 with self.locked_op("add-publisher"):
1644 # Ensure that if the publisher's meta directory already
1653 # First, verify that the publisher has a
1661 # Remove the newly added publisher since
1667 # Remove the newly added publisher since
1764 pub = self.get_publisher(prefix=fmri.publisher)
1766 # Since user removed publisher, assume this is the same
1768 # publisher.
1849 if act.include_this(excludes, publisher=fmri.publisher):
1869 publisher=fmri.publisher) and not act.refcountable:
1929 """Returns the publisher for the FMRI of an installed package
1934 return f.publisher
1939 if not pfmri.publisher:
1941 # publisher information.
1943 pfmri.publisher = self.__get_installed_pkg_publisher(
1945 assert pfmri.publisher
1946 root = self._get_publisher_cache_root(pfmri.publisher)
1951 if not pfmri.publisher:
1953 # publisher information.
1955 pfmri.publisher = self.__get_installed_pkg_publisher(
1957 assert pfmri.publisher
1959 pfmri.publisher))
1987 # or reach the publisher.
2151 instpubs = set(f.publisher for f in added)
2160 npub = publisher.Publisher(pfx,
2161 repository=publisher.Repository())
2286 installed or available from a publisher's repository.
2354 assert pfmri.publisher
2372 pub = self.get_publisher(prefix=pfmri.publisher)
2375 # recorded, but the publisher is no longer configured;
2499 """Rebuilds the image catalogs based on the available publisher
2524 # no longer available from a publisher repository. However,
2556 # All enabled publisher catalogs must be processed.
2563 # consolidated here. This comparison is also cross-publisher,
2716 excludes, publisher=pub):
2796 publisher=pub, version=ver))
2823 a full retrieval of publisher metadata (e.g. catalogs) or only
2828 a refresh should occur now. If False, a publisher's selected
2833 'pubs' is a list of publisher prefixes or publisher objects
2865 if not isinstance(p, publisher.Publisher):
2948 return os.path.join(self.imgdir, "cache", "publisher", prefix)
2955 """Removes the metadata for the specified publisher object,
2958 'pub' is the object of the publisher to remove the data for.
2963 catalogs should be rebuilt after removing the publisher's
2972 if f.publisher == pub.prefix
2979 # Discard all publisher metadata except
3018 # publisher if possible.
3037 # Catalog entries always have publisher prefix.
3637 corresponding publisher's catalog, are dropped.
3654 if m.publisher in publist:
3766 p.publisher = None
4165 # If refreshing publisher metadata is allowed,
4393 based on whether its publisher is going to be dehydrated or has
4398 def __allow_action_dehydrate(act, publisher):
4399 if publisher not in dehydrated_pubs: