/pkg/src/modules/ |
H A D | fmri.py | 33 # In order to keep track of what publisher is presently the preferred publisher, 34 # a prefix is included ahead of the name of the publisher. If this prefix is 35 # present, the publisher is considered to be the current preferred publisher for 37 # the FMRI. PREF_PUB_PFX => preferred publisher prefix. 95 """The publisher is the anchor of a package namespace. Clients can 109 __slots__ = ["version", "publisher", "pkg_name", "_hash", "__weakref__"] 111 def __init__(self, fmri=None, build_release=None, publisher=None, 120 # Always use publisher informatio [all...] |
H A D | p5s.py | 33 import pkg.client.publisher as publisher namespace 42 """Reads the pkg(7) publisher JSON formatted data at 'location' 44 tuple. The first element of the tuple is a list of publisher objects. 59 publisher.SYSREPO_PROXY)): 62 r = publisher.RepositoryURI( 71 r = publisher.RepositoryURI(val) 72 r.proxies = [publisher.ProxyURI(None, 98 # For each set of publisher information in the parsed p5s file, 108 pub = publisher [all...] |
H A D | p5i.py | 35 import pkg.client.publisher as publisher namespace 42 """Reads the pkg(7) publisher JSON formatted data at 'location' 44 list of tuples of the format (publisher object, pkg_names). 46 FMRIs. If any pkg_names not specific to a publisher were 112 pub = publisher.Publisher(prefix, alias=alias) 134 repo = publisher.Repository(**rargs) 145 """Writes the publisher, repository, and provided package names to the 151 'pkg_names' is a dict of lists, tuples, or sets indexed by publisher 154 a publisher [all...] |
H A D | _varcet.c | 53 PyObject *publisher = NULL; local 54 static char *kwlist[] = {"facets", "action", "publisher", NULL}; 57 kwlist, &facets, &action, &publisher)) 192 PyObject *publisher = NULL; local 193 static char *kwlist[] = {"vars", "action", "publisher", NULL}; 196 kwlist, &vars, &action, &publisher))
|
H A D | api_common.py | 136 category_info_list=None, states=None, publisher=None, 148 self.publisher = publisher 176 return PackageInfo(pkg_stem=name, publisher=pub,
|
H A D | p5p.py | 40 import pkg.client.publisher namespace 330 # Used to cache publisher objects. 333 # Used to cache location of publisher catalog data. 478 # Used to determine what the default publisher will be 489 # Always add base publisher directory to start; tarfile 492 self.add("/", arcname="publisher") 647 self.__default_pub = pfmri.publisher 658 pub_dir = os.path.join("publisher", pfmri.publisher) 703 pub = self.__pubs.get(pfmri.publisher, [all...] |
H A D | manifest.py | 175 self.publisher = pfmri.publisher 177 self.publisher = None 741 publisher=self.publisher) 911 pub = self.publisher 914 if not c(a, publisher=pub): 934 pub = self.publisher 937 if not c(a, publisher=pub): 1134 attrs["name"] = "publisher" [all...] |
H A D | catalog.py | 420 for each package on a per-publisher basis should be returned. 426 results should sorted by stem and then by publisher and 428 in a ascending version order on a per-publisher, per-stem 431 'pubs' is an optional list of publisher prefixes to restrict 474 if pfmri and not pfmri.publisher: 533 for each package on a per-publisher basis should be returned. 539 results should sorted by stem and then by publisher and 541 in a ascending version order on a per-publisher, per-stem 544 'pubs' is an optional list of publisher prefixes to restrict 548 publisher, pe [all...] |
H A D | facet.py | 529 def allow_action(self, action, publisher=None): 530 return _allow_facet(self, action, publisher=publisher)
|
/pkg/src/tests/cli/ |
H A D | t_publish_api.py | 36 import pkg.client.publisher as publisher namespace 56 repouriobj = publisher.RepositoryURI(durl) 57 repo = publisher.Repository(origins=[repouriobj]) 58 pub = publisher.Publisher(prefix="repo1", repository=repo) 82 repouriobj = publisher.RepositoryURI(location) 83 repo = publisher.Repository(origins=[repouriobj]) 84 pub = publisher.Publisher(prefix="repo1", repository=repo)
|
/pkg/src/tests/api/ |
H A D | t_publisher.py | 42 import pkg.client.publisher as publisher namespace 47 """Class to test the functionality of the pkg.client.publisher module. 75 uobj = publisher.RepositoryURI("https://example.com", **uprops) 127 uobj = publisher.RepositoryURI("https://example.com/") 139 uobj = publisher.RepositoryURI("https://example.com", 141 uobj = publisher.RepositoryURI("https://example.com", 142 proxies=[publisher.ProxyURI("http://foo.com")]) 144 self.assertTrue(uobj.proxies == [publisher.ProxyURI( 150 uobj.proxies = [publisher [all...] |
H A D | t_api_refresh.py | 39 import pkg.client.publisher as publisher namespace 74 """Verify that refresh updates the publisher catalog if it's 77 # create an image with one publisher (which has two origin) 86 # get the publisher object 89 # note when the publisher catalog was last updated 92 # create a copy of the publisher catalog 106 # make sure the publisher catalog was updated. 111 # overwrite the current publisher catalog with the old catalog 116 # make sure the publisher catalo [all...] |
H A D | t_p5i.py | 36 import pkg.client.publisher as publisher namespace 97 # First build a publisher object matching our expected data. 100 repo = publisher.Repository(description="xkcd.net/325", 104 pub = publisher.Publisher("bobcat", alias="cat", 139 # First result should be 'bobcat' publisher and its 153 # Last result should be no publisher and a list of 208 """Verify that a p5i file with various parts of a publisher's
|
H A D | t_fmri.py | 61 publisher = "opensolaris.org") 223 for vn in ("/test@1.0,5.11-0", "//publisher/test@1.0,5.11-0"): 227 self.assertEqual(pfmri.publisher, "publisher") 229 self.assertEqual(pfmri.publisher, None) 281 """Verify that different ways of specifying the publisher 286 self.assertEqual(f.publisher, None) 290 self.assertEqual(f.publisher, "test")
|
H A D | t_linked_image.py | 44 import pkg.client.publisher as publisher namespace 775 """Verify the linked image publisher sync check.""" 796 # setup publisher objects 797 repouri = publisher.RepositoryURI(self.rurl1) 798 repo1 = publisher.Repository(origins=[repouri]) 799 self.po1 = publisher.Publisher(self.pub1, repository=repo1) 801 repouri = publisher.RepositoryURI(self.rurl2) 802 repo2 = publisher.Repository(origins=[repouri]) 803 self.po2 = publisher [all...] |
/pkg/src/svc/ |
H A D | svc-pkg-mirror | 223 # Checks whether the given repository has a publisher/prefix set, 224 # and if not, sets it to the given publisher. 227 # set_default_publisher <path to repo> <publisher> 233 DEFAULT=$($PKGREPO -s "$repo" get -H publisher/prefix | \ 236 $PKGREPO -s "$repo" set publisher/prefix=$pub 242 # 'pkgrecv_from_origin' for each publisher configured in the SMF 298 sslkey=$($PKG -R $ref_image publisher $pub \ 301 sslcert=$($PKG -R $ref_image publisher $pub \ 304 $PKG -R $ref_image publisher -F tsv > /tmp/pkg.mirror.$$ 308 # 'pkg publisher [all...] |
/pkg/src/modules/publish/ |
H A D | transaction.py | 219 self.publisher = pub 238 if self.transport.publish_cache_contains(self.publisher): 246 # publisher only). 271 self.transport.publish_cache_repository(self.publisher, repo) 303 self.transport.publish_add(self.publisher, 379 fhash, pub=self.publisher, trans_id=self.trans_id) 511 self.transport.publish_add_file(self.publisher, 531 self.transport.publish_add_manifest(self.publisher, 562 self.publisher, trans_id=self.trans_id) 582 self.publisher, trans_i [all...] |
/pkg/src/modules/server/ |
H A D | repository.py | 49 import pkg.client.publisher as publisher namespace 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 wa [all...] |
/pkg/src/modules/client/ |
H A D | imageconfig.py | 37 import pkg.client.publisher as publisher namespace 117 cfg.PropList("publisher-search-order"), 129 # Base publisher information. 169 cfg.PropList("publisher-search-order"), 219 # Base publisher information. 282 ImageConfig should write the special publisher.SYSREPO_PROXY 306 """Change the publisher search order by moving the publisher 307 'being_moved' relative to the publisher 'stayin [all...] |
H A D | api_errors.py | 560 using a different matching pattern, or refreshing publisher information: 568 using a different matching pattern, or refreshing publisher information: 712 Invalid child image publisher configuration. Child image publisher 713 configuration must be a superset of the parent image publisher configuration. 714 Please update the child publisher configuration to match the parent. If the 1145 operations because it is missing publisher information.""" 1148 return _("The FMRI '{0}' does not contain publisher information " 1240 return _("The content of the catalog for publisher '{0}' " 1243 "catalog files being provided for the publisher [all...] |
H A D | image.py | 61 import pkg.client.publisher as publisher namespace 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 [all...] |
/pkg/src/modules/client/transport/ |
H A D | transport.py | 48 import pkg.client.publisher as publisher namespace 95 publisher. 'path' must be a directory created for use with the 104 'pub' is an optional publisher prefix to restrict usage of this 106 publisher could be contained within this cache. 140 # publisher. 146 "specific publisher may exist at a time.") 151 # Either no caches exist for this publisher, or this is 161 publisher in order of preference. That is, caches should 164 'pub' is an optional publisher prefi [all...] |
/pkg/src/modules/lint/ |
H A D | engine.py | 30 import pkg.client.publisher as publisher namespace 141 # publisher, then sorted by version. We may find 142 # another publisher that has a more recent 236 use a different publisher.prefix (as they are added as publishers 283 'ignore_different_publishers' Whether to ignore differences in publisher 327 # whether to ignore publisher differences when comparing vers 771 # the publisher, if any. 778 if search_fmri.publisher: 779 if search_fmri.publisher [all...] |
/pkg/src/modules/actions/ |
H A D | depend.py | 136 if fmri.publisher and fmri.publisher != pf.publisher: 137 # package is from a different publisher 139 "different publisher: {0}"). 204 # include a publisher 205 assert pfmri.publisher
|
H A D | license.py | 218 # publisher. 221 alt_pub = img.get_publisher(pfmri.publisher) 222 assert pfmri.publisher == alt_pub.prefix
|