Lines Matching defs:catalog
50 import pkg.catalog
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.
1468 # Already in image known catalog.
2071 cur_time = pkg.catalog.now_to_basic_ts()
2116 # installed catalog and should be added.
2214 # Must copy the old catalog data to the new
2281 """Returns the requested image catalog.
2285 The known catalog contains all of packages that are
2289 The installed catalog is a subset of the 'known'
2290 catalog that only contains installed packages."""
2302 # the known catalog is requested.
2308 """Private method to retrieve catalog; this bypasses the
2325 # image upgrade or metadata refresh. In both cases, the catalog
2327 cat = pkg.catalog.Catalog(batch_mode=True, meta_root=croot,
2407 # Avoid loading the installed catalog if the known catalog
2409 # catalog is a subset of the known, and a specific entry
2451 catalog is being updated."""
2455 """Called when we start updating the image catalog. Normally
2459 # get the path to the image catalog update flag file
2482 """Called when we're done updating the image catalog."""
2484 # get the path to the image catalog update flag file
2528 # batch_mode is set to True here since without it, catalog
2529 # population time is almost doubled (since the catalog is
2531 # In addition, the new catalog is first created in a new
2547 kcat = pkg.catalog.Catalog(batch_mode=True,
2553 # catalog needs to be re-loaded so the client is in a consistent
2557 pub_cats = [(pub.prefix, pub.catalog) for pub in publist]
2561 # matches the newest version in the catalog. This is quite
2576 # Next, copy all of the entries for the catalog parts that
2577 # currently exist into the image 'known' catalog.
2599 # Create the new installed catalog in a temporary location.
2600 icat = pkg.catalog.Catalog(batch_mode=True,
2619 base = name.startswith("catalog.base.")
2623 dp = cat.get_part("catalog.dependency.C",
2636 # copy() is too slow here and catalog entries
2641 # entry for non-base catalog parts.
2651 # Only the base catalog part stores package
2657 # Assume V1 catalog source.
2746 base = name.startswith("catalog.base.")
2819 """Refreshes the metadata (e.g. catalog) for one or more
3068 [pkg.catalog.Catalog.DEPENDENCY], excludes=excludes):
3637 corresponding publisher's catalog, are dropped.
3660 # catalog.