Lines Matching refs:publisher
49 import pkg.client.publisher as publisher
195 publisher information."""
198 return _("This operation requires that a default publisher has "
199 "been set or that a publisher be specified in the FMRI "
250 completed as not default publisher has been set and one was not
256 "default publisher has not been configured.")
295 """Raised when the publisher specified for an operation already exists,
304 """Raised when the publisher specified for an operation is unknown to
310 return _("No publisher was specified or no default "
311 "publisher has been configured for the repository.")
312 return _("No publisher matching '{0}' could be found.").format(
409 self.publisher = pub
760 default_pub = self.publisher
778 if default_pub and not f.publisher:
779 f.publisher = default_pub
954 if self.catalog_version >= 1 and not self.publisher:
956 # the publisher identity, then assume it's the first
957 # publisher in this repository store's catalog.
962 self.publisher = pubs[0]
1339 if not self.publisher:
1343 # Determine if configuration for publisher exists
1353 # No p5i exists, or existing one doesn't contain publisher info,
1354 # so return a stub publisher object.
1355 return publisher.Publisher(self.publisher)
1619 pver)), publisher=self.publisher)
1807 """Updates the configuration information for the publisher
1922 _("Some repository content for publisher '{0}' "
2166 # packages have ever been published for this publisher.
2240 publisher=self.publisher)
2349 # For signature verification, we need to setup a publisher
2659 pub_root = os.path.join(self.root, "publisher")
2664 # If publisher root exists or new configuration
2711 # Don't create the publisher root at this point,
2714 "publisher")
2730 def_pub = self.cfg.get_property("publisher", "prefix")
2741 self.__rstores[rstore.publisher] = rstore
2743 # ...and then one for each publisher if any are known.
2749 # If a default publisher is set, ensure that a storage
2757 # publisher prefix. (This might be in a mix of V0 and
2766 self.__rstores[rstore.publisher] = rstore
2902 # partitioned by publisher.
2912 "publisher", pub)
2953 """Creates a repository storage area for the publisher defined
2954 by the provided Publisher object and then stores the publisher's
2972 # Update the publisher's configuration.
2992 information for the publisher defined by the provided
2993 publisher prefix. pfxs must be an iterable.
3003 # create a temp folder, move the publisher folder into it
3011 pub_path = os.path.join(repo_path, "publisher",
3071 rstore = self.get_pub_rstore(pfmri.publisher)
3085 if pub and not pfmri.publisher:
3086 pfmri.publisher = pub
3089 rstore = self.get_pub_rstore(pfmri.publisher)
3091 if not pfmri.publisher:
3092 # No publisher given in FMRI and no default
3093 # publisher so treat as invalid FMRI.
3101 'pub' is the prefix of the publisher to return catalog data for.
3102 If not specified, the default publisher will be used. If no
3103 default publisher has been configured, an AssertionError will be
3126 'pub' is the prefix of the publisher to return catalog data for.
3127 If not specified, the default publisher will be used. If no
3128 default publisher has been configured, an AssertionError will be
3137 # If a publisher wasn't specified, every repository store will
3138 # have to be tried since default publisher can't safely apply
3151 """Return the catalog object for the given publisher.
3153 'pub' is the optional name of the publisher to return the
3154 catalog for. If not provided, the default publisher's
3163 # In this case, an unknown publisher's
3171 publisher (if provided). If not provided, a repository
3172 storage object for the default publisher will be returned.
3174 no storage object for the given publisher exists.
3178 pub = self.cfg.get_property("publisher", "prefix")
3189 """Return a publisher object for the given publisher prefix
3194 alias = self.cfg.get_property("publisher", "alias")
3204 repo = publisher.Repository(**rargs)
3205 return publisher.Publisher(pub, alias=alias,
3209 """Return publisher objects for all publishers known by the
3218 """Return the publisher object for the given publisher. Raises
3219 RepositoryUnknownPublisher if no matching publisher can be
3259 if not rstore.publisher:
3262 pubdata[rstore.publisher] = rstore.get_status()
3315 if not pub and pfmri.publisher:
3316 pub = pfmri.publisher
3317 elif pub and not pfmri.publisher:
3318 pfmri.publisher = pub
3327 # If a publisher wasn't specified, every repository store will
3328 # have to be tried since default publisher can't safely apply
3334 if not rstore.publisher:
3353 if pub and not pfmri.publisher:
3354 pfmri.publisher = pub
3357 rstore = self.get_pub_rstore(pfmri.publisher)
3359 if not pfmri.publisher:
3360 # No publisher given in FMRI and no default
3361 # publisher so treat as invalid FMRI.
3363 # A publisher was provided, but no repository storage
3365 rstore = self.__new_rstore(pfmri.publisher)
3388 'pubs' is an optional set of publisher prefixes to restrict the
3417 if not rstore.catalog_root or not rstore.publisher:
3420 if pubs and rstore.publisher not in pubs:
3421 # Doesn't match specified publisher.
3435 # matches for any publisher.
3442 # publisher.
3456 pub = self.cfg.get_property("publisher", "prefix")
3461 if rstore.publisher:
3462 pubs.add(rstore.publisher)
3471 if not rstore.publisher:
3473 if pub and rstore.publisher and rstore.publisher != pub:
3484 'pub' is an optional publisher prefix to limit the operation to.
3494 if pub and not pfmri.publisher:
3495 pfmri.publisher = pub
3496 if pfmri.publisher:
3497 pubs.add(pfmri.publisher)
3505 # model relies on a single publisher at a time and
3510 # Use publisher specified in one of the FMRIs instead
3511 # of default publisher.
3518 if not pfmri.publisher:
3519 # No publisher given in FMRI and no
3520 # default publisher so treat as
3526 # Before moving on, assign publisher for every FMRI that doesn't
3529 if not pfmri.publisher:
3530 pfmri.publisher = rstore.publisher
3540 if not rstore.publisher:
3542 if pub and rstore.publisher and rstore.publisher != pub:
3574 if not rstore.publisher:
3576 if pub and rstore.publisher and rstore.publisher != pub:
3592 rstore = self.get_pub_rstore(pfmri.publisher)
3600 if pub and rstore.publisher and rstore.publisher != pub:
3631 """Updates the configuration information for the publisher
3643 # Get the repository storage area for the given publisher.
3646 # Update the publisher's configuration.
3656 'pubs' is an optional publisher list to limit the
3739 # publisher and version, then find matched stem
3741 if not pfmri.publisher and \
3748 if pfmri.publisher and rf.publisher \
3749 != pfmri.publisher:
3793 attrs["pkg"]).publisher
3794 if pub != None and pub != afmri.publisher:
3824 if pfmri.publisher and \
3825 ifmri.publisher and \
3826 pfmri.publisher \
3827 != ifmri.publisher:
4061 'pubs' is an optional publisher list to limit the
4121 rstore = self.get_pub_rstore(pfmri.publisher)
4173 cfg.PropertySection("publisher", [
4206 cfg.PropertySection("publisher", [
4239 cfg.PropertySection("publisher", [
4271 repo_uri = publisher.RepositoryURI(misc.parse_uri(repo_uri))