Searched defs:catalog (Results 1 - 25 of 26) sorted by relevance

12

/pkg/src/modules/
H A Dlockfile.py32 import pkg.catalog namespace
233 lock_ts = pkg.catalog.now_to_basic_ts()
249 lock_ts = pkg.catalog.now_to_basic_ts()
/pkg/src/tests/api/
H A Dt_p5p.py37 import pkg.catalog namespace
698 for pname in ("catalog.attrs", "catalog.base.C",
699 "catalog.dependency.C", "catalog.summary.C"):
705 if pname == "catalog.dependency.C":
713 cat = pkg.catalog.Catalog(meta_root=ext_tmp_dir)
858 arc.extract_catalog1, "catalog.attrs", ext_dir)
H A Dt_dependencies.py38 import pkg.catalog as catalog namespace
H A Dt_catalog.py43 import pkg.catalog as catalog namespace
52 """Tests for all catalog functionality."""
59 self.c = catalog.Catalog(log_updates=True)
443 # Test new catalog case.
445 c = catalog.Catalog(meta_root=cpath, log_updates=True)
454 # Now test old catalog case.
457 c = catalog.Catalog(meta_root=cpath, log_updates=True)
463 # since this causes the catalog file to be re-created.
472 # Finally, test read_only old catalog cas
[all...]
/pkg/src/tests/cli/
H A Dt_pkg_composite.py33 import pkg.catalog as catalog namespace
372 "var/pkg/state/installed/catalog.base.C")
375 pkg_install = catalog.basic_ts_to_datetime(
H A Dt_pkg_refresh.py37 import pkg.catalog as catalog namespace
105 # "GET [/<pub>]/catalog/1/catalog.base.C HTTP/1.1" 200 189 ""
197 # the publisher's metadata was last checked, and so the catalog
202 # and so the catalog will reflect the last published package.
211 # and so the catalog will reflect the last published package.
228 # and so the catalog will reflect the last published package.
372 have repositories that offer catalog/1/ in exceptional error
383 # Only entries for the full catalog file
[all...]
H A Dt_pkg_image_create.py35 import pkg.catalog namespace
415 kfile_path = os.path.join(state_path, "known", "catalog.attrs")
417 "catalog.attrs")
425 # Should work since known catalog file was corrupted, not the
426 # installed catalog file.
429 # These should all fail as they depend on the known catalog
440 # Should fail since installed catalog file is corrupt.
H A Dt_pkg_info.py36 import pkg.catalog as catalog namespace
764 "var/pkg/state/installed/catalog.base.C")
766 last_install = catalog.basic_ts_to_datetime(
774 last_install = catalog.basic_ts_to_datetime(
780 last_update = catalog.basic_ts_to_datetime(
H A Dt_pkg_temp_sources.py34 import pkg.catalog as catalog namespace
565 "var/pkg/state/installed/catalog.base.C")
567 pkg_install = catalog.basic_ts_to_datetime(
H A Dt_pkgrecv.py35 import pkg.catalog as catalog namespace
881 for part in ("catalog.attrs", "catalog.base.C"):
884 cat = catalog.Catalog(meta_root=catdir, read_only=True)
910 for part in ("catalog.attrs", "catalog.base.C"):
913 cat = catalog.Catalog(meta_root=catdir, read_only=True)
978 for part in ("catalog.attrs", "catalog
[all...]
H A Dt_pkgrepo.py35 import pkg.catalog namespace
863 # Verify rebuild --no-catalog works for an empty repository,
864 # and that the catalog itself does not change.
867 self.pkgrepo("rebuild -s {0} --no-catalog".format(repo_uri))
883 # Verify that rebuild --no-catalog works for a repository with
887 # Now rebuild and verify packages are still known and catalog
890 self.pkgrepo("rebuild -s {0} --no-catalog".format(repo_uri))
899 # Destroy the catalog.
906 # Now rebuild and verify packages are still unknown and catalog
909 self.pkgrepo("rebuild -s {0} --no-catalog"
[all...]
H A Dt_pkg_search.py43 import pkg.catalog as catalog namespace
675 # Should return nothing, as the server can't build catalog
680 # Should fail since the bogus_pkg isn't even in the catalog.
691 # Load the 'installed' catalog and add an entry for the
695 cat = catalog.Catalog(meta_root=istate_dir)
/pkg/src/modules/server/
H A Dfeed.py30 a catalog, allow the construction of a feed representing the activity within
46 import pkg.catalog as catalog namespace
157 if op_type == catalog.CatalogUpdate.ADD:
166 elif op_type == catalog.CatalogUpdate.REMOVE:
212 that have been made to the catalog since the specified UTC datetime
228 # catalog data, so aren't currently interesting.
266 # Cache the first entry in the catalog for any given package stem found
294 ulog = catalog.CatalogUpdate(name, meta_root=cat.meta_root)
H A Dapi.py35 import pkg.catalog namespace
83 """This class presents an interface to server catalog objects that
99 over the contents of the server's catalog.
116 form (fmri, states) in the catalog incorporated by the named
311 # Set of options that can use catalog data.
406 which the catalog was last modified. Returns None if not
417 """The total number of packages in the catalog. Returns None
418 if the catalog is not available.
428 """The total number of package versions in the catalog. Returns
429 None if the catalog i
[all...]
H A Drepository.py46 import pkg.catalog as catalog namespace
492 c = self.catalog
501 c = self.catalog
532 """Destroy the catalog."""
639 cat = self.catalog
642 lcat_update = catalog.datetime_to_basic_ts(
661 "last-catalog-update": lcat_update,
762 # Temporarily mark catalog as not read-only so
764 self.catalog
1254 def catalog(self): member in class:_RepoStore
[all...]
/pkg/src/
H A Ddepot-config.py48 import pkg.catalog namespace
91 catalog 1
217 <sroot>/<repo_prefix>/<publisher>/<file, catalog etc.>/<version>/
218 <sroot>/<repo_prefix>/<file, catalog etc.>/<version>/
H A Dsysrepo.py52 import pkg.catalog namespace
116 catalog 1
H A Dpull.py41 import pkg.catalog as catalog namespace
364 """Fetch the catalog from src_uri.
366 target_catalog is a hint about whether this is a destination catalog,
375 # Create a temporary directory for catalog.
386 # Assume that a catalog doesn't exist for the target publisher,
390 return catalog.Catalog(read_only=True)
395 return src_pub.catalog
994 # Copy catalog files.
1002 prefix='catalog
[all...]
H A Dpkgrepo.py74 import pkg.catalog namespace
169 --cert ssl_cert ...] [--no-catalog] [--no-index]
172 --cert ssl_cert ...] [--no-catalog] [--no-index]
446 numpkg = rstore.catalog.package_count
837 last_update = pdata.get("last-catalog-update", "")
841 last_update = pkg.catalog.basic_ts_to_datetime(
844 pkg.catalog.datetime_to_ts(last_update))
939 cat = pub.catalog
1057 # Assume that a catalog doesn't exist for the target
1115 cat = pub.catalog
[all...]
/pkg/src/modules/client/
H A Dpkg_solver.py41 import pkg.catalog as catalog namespace
127 """Create a PkgSolver instance; catalog should contain all
1661 """Cache for catalog entries; helps performance"""
1670 """ return the list of fmris in catalog for this pkg name"""
1755 [catalog.Catalog.DEPENDENCY], excludes=excludes)
1797 [catalog.Catalog.DEPENDENCY], excludes=excludes)
2885 [catalog.Catalog.DEPENDENCY], excludes=excludes):
2914 [catalog.Catalog.DEPENDENCY],
3031 # catalog
[all...]
H A Dpublisher.py62 import pkg.catalog namespace
766 repository catalog or repository metadata information.
1204 def __init__(self, prefix, alias=None, catalog=None, client_uuid=None,
1210 'catalog' is an optional Catalog object to use in place of
1215 assert not (catalog and meta_root)
1272 self._catalog = catalog
1504 or errors. Currently only checks catalog metadata."""
1506 c = pkg.catalog.Catalog(meta_root=croot, read_only=True)
1517 # XXX For now, perform this check using the catalog data.
1531 The catalog retrieve
1581 def catalog(self): function
[all...]
H A Dimage.py50 import pkg.catalog namespace
261 """Returns a boolean value indicating whether the named catalog
263 optimization function to determine which catalog to request."""
268 """Initializes default catalog state. Actual data is provided
975 # until we've updated on on-disk catalog state. (otherwise we
977 # return stale catalog information, or not do refreshes when
1219 # Always get last_modified time from known catalog. It's
1220 # retrieved from the catalog itself since that is accurate
1459 # known package catalog for packages not listed in the
1460 # image's known catalog
[all...]
H A Dapi.py76 import pkg.catalog as catalog namespace
1579 # the known catalog
2992 """Refreshes the metadata (e.g. catalog) for one or more
3069 the last version of each unique package in the catalog on a
3329 installed catalog and package repository map for temporary
3343 img_inst_base = img_inst_cat.get_part("catalog.base.C",
3370 # Retrieve each publisher's catalog.
3387 pub.catalog
3427 compicat = pkg.catalog
[all...]
H A Dimageplan.py53 import pkg.catalog namespace
558 f, [pkg.catalog.Catalog.SUMMARY]):
3475 # three times (original, cache, catalog).
4739 # Remove history about manifest/catalog transactions. This
5521 info_needed = [pkg.catalog.Catalog.DEPENDENCY]
/pkg/src/modules/client/linkedimage/
H A Dcommon.py60 import pkg.catalog namespace
1509 # get parent dependencies from the catalog
1513 [pkg.catalog.Catalog.DEPENDENCY],
3471 # installed catalog. If this is a non-image modifying operation then
3472 # the installed catalog should be sufficient. If this is an image
3474 # to use the known catalog (which should already have been initialized
3528 # searching for allowable packages in the catalog, because even if we
3529 # found them in the catalog and they did have a parent dependency,

Completed in 1073 milliseconds

12