Searched refs:manifest (Results 1 - 25 of 58) sorted by relevance

123

/pkg/src/modules/lint/
H A Dpkglint_manifest.py27 # Some pkg(7) specific lint manifest checks
41 name = "pkglint.manifest"
45 "Checks for errors within the scope of a single manifest.")
58 def seed_names_dict(manifest, dic):
59 if "pkg.renamed" in manifest or \
60 "pkg.obsolete" in manifest:
62 name = os.path.basename(manifest.fmri.get_name())
64 dic[name].append(manifest.fmri)
66 dic[name] = [manifest.fmri]
97 _("Seeding reference manifest dictionarie
[all...]
H A Dopensolaris.py47 name = "opensolaris.manifest"
54 def missing_attrs(self, manifest, engine, pkglint_id="001"):
59 if "pkg.renamed" in manifest:
62 if "pkg.obsolete" in manifest:
67 if key not in manifest:
70 "{pkg}").format(key=key, pkg=manifest.fmri),
H A Dpkglint_action.py114 manifest."""
163 for manifest in engine.gen_manifests(engine.ref_api_inst,
165 # Only put this manifest into the reference dictionary
168 lint_fmri_successor(fmri, manifest.fmri)
170 in lint_fmris.get(manifest.fmri.get_name(), [])
174 seed_dict(manifest, "path", self.ref_paths)
175 seed_dict(manifest, "pkg", self.ref_legacy_pkgs,
177 seed_dict(manifest, "name", self.ref_drivers,
179 seed_dict(manifest, "username",
181 seed_dict(manifest, "ui
[all...]
H A Dbase.py227 def check(self, action, manifest, engine):
229 'manifest' is a pkg.manifest.Manifest"""
232 engine.advise_loggers(action=action, manifest=manifest)
234 func(action, manifest, engine)
242 manifest=manifest, lint_id=pkglint_id):
248 mf=manifest.fmri,
257 mf=manifest
[all...]
H A Dlog.py100 # the action and manifest we expect messages from. See advise()
102 self.manifest = None
179 def advise(self, action=None, manifest=None):
181 the given action and/or manifest."""
184 if manifest:
185 self.manifest = manifest
208 manifest=self.manifest,
H A Dengine.py63 seeded at startup, and a generic manifest cache"""
202 def add(self, api_inst, pkg_name, manifest):
203 """Adds a given manifest to the cache for a given api_inst"""
206 self.misc_cache[api_inst][pkg_name] = manifest
247 We can also lint pkg.manifest.Manifest objects, passed as the
519 "manifest files must be provided."))
615 for that action or manifest.
622 manifest actions in order to properly respect pkg.linted
649 for manifest in self.gen_manifests(self.lint_api_inst,
651 self._check_manifest(manifest, manifest_check
[all...]
/pkg/src/util/log-scripts/
H A Dcron.ksh52 grep " /manifest" access_log > access_log.manifest
57 python $LOG_HOME/an_manifest.py access_log.manifest > manifest.html
H A Dsplit.awk49 / \/manifest/ {
50 print $0 >> ("raw.manifest." timestamp)
/pkg/src/
H A Dpydates43 manifest = set(
55 # Remove the filenames from "manifest" so that we don't look for their changeset
58 if f in manifest:
61 manifest.remove(f)
70 if f in manifest:
72 manifest.remove(f)
H A Dpkgdep.py42 import pkg.manifest as manifest namespace
164 usage(_("The manifest file {0} could not be found.").format(manf),
180 error(_("Could not parse manifest {manifest} because of the "
181 "following line:\n{line}").format(manifest=manf,
248 for manifest in manifest_paths:
249 if not os.path.isfile(manifest):
250 usage(_("The manifest file {0} could not be found.").format(
251 manifest), retcod
[all...]
H A Dsign.py52 import pkg.manifest as manifest namespace
288 # Get the existing manifest for the package to
292 m = manifest.Manifest()
301 # Add the action to the manifest to be signed
326 # already been added to the manifest, it is
349 # to the published manifest.
/pkg/src/util/publish/
H A Dpkglint.py45 import pkg.manifest namespace
74 " [manifest ...]\n"
145 error(_("Fatal error in manifest - exiting."))
241 "manifest not encoded in UTF-8: {err}").format(
246 lint_logger.critical(_("Unable to read manifest file "
255 manifest = pkg.manifest.Manifest()
257 manifest.set_content(content="\n".join(lines))
272 manifest = None
278 manifest
[all...]
H A Dpkgsurf.py34 # We then compare the target and ref manifest for content changes. Any
49 # chain had a content change the can the manifest be reversioned.
56 # dropped since the manifest data changed.
59 # from the associated manifest of the reference version of this package.
89 import pkg.manifest as manifest namespace
246 """ Retrieve a manifest with FMRI 'pfmri' of publisher 'pub' from
249 path = repo.manifest(pfmri, pub)
250 mani = manifest.Manifest(pfmri)
254 abort(err=_("Can not open manifest fil
[all...]
H A Dpkgdiff.py40 import pkg.manifest as manifest namespace
103 usage(_("two manifest arguments are required"))
106 usage(_("only one manifest argument can be stdin"))
131 manifest1 = manifest.Manifest()
132 manifest2 = manifest.Manifest()
146 # manifest filtering
153 # a generator, to avoid clobbering manifest contents.
186 # in each manifest in that case. First, make sure any variants
212 # avoid confusing manifest differenc
[all...]
/pkg/src/tests/api/
H A Dt_manifest.py39 import pkg.manifest as manifest namespace
54 self.m1 = manifest.Manifest()
60 self.m2 = manifest.Manifest()
117 """ ASSERT: manifest string repr reflects its construction """
122 # representation of the manifest matched the input, but the
137 m = manifest.Manifest()
144 m = manifest.Manifest()
155 m = manifest.Manifest()
206 diffs = self.m2.combined_difference(manifest
[all...]
H A Dt_pkglint.py39 import pkg.manifest namespace
171 file nohash group=sys mode=0444 owner=root path=var/svc/manifest/application/x11/xfs.xml pkg.csize=1649 pkg.size=3534 restart_fmri=svc:/system/manifest-import:default
408 file nohash group=sys mode=0444 owner=root path=var/svc/manifest/application/x11/xfs.xml pkg.csize=1649 pkg.size=3534 restart_fmri=svc:/system/manifest-import:default
479 # 3 errors get reported for this manifest:
504 file nohash group=sys mode=0444 owner=root path=var/svc/manifest/application/x11/xfs.xml pkg.csize=1649 pkg.size=3534 restart_fmri=svc:/system/manifest-import:default
528 file nohash group=sys mode=0444 owner=root path=var/svc/manifest/application/x11/xfs.xml pkg.csize=1649 pkg.size=3534 restart_fmri=svc:/system/manifest
[all...]
H A Dt_catalog.py45 import pkg.manifest as manifest namespace
110 m = manifest.Manifest()
252 # as the callback will return an empty manifest.
293 # as the callback will return an empty manifest.
312 # as the callback will return an empty manifest.
331 # as the callback will return an empty manifest.
720 p1_man = manifest.Manifest(p1_fmri)
725 p2_man = manifest.Manifest(p2_fmri)
732 p3_man = manifest
[all...]
/pkg/src/tests/cli/
H A Dt_pkgsurf.py35 import pkg.manifest as manifest namespace
600 """Change the content-hash attr in the manifest located at the
612 mpath = repo.manifest(f)
613 # load manifest, change content-hash attr and store back
615 mani = manifest.Manifest()
624 # rebuild repo catalog since manifest digest changed
665 targ = targ_repo.manifest(f)
667 # Load target manifest
668 targm = manifest
[all...]
H A Dt_pkgmerge.py505 with open(repo.manifest(f), "r") as m:
547 with open(repo.manifest(f), "r") as m:
643 with open(repo.manifest(f), "r") as m:
723 with open(repo.manifest(f), "r") as m:
767 with open(repo.manifest(f), "r") as m:
883 with open(repo.manifest(f), "r") as m:
907 with open(repo.manifest(f), "r") as m:
1008 with open(repo.manifest(f), "r") as m:
1042 with open(repo.manifest(f), "r") as m:
1218 with open(sr.manifest(
[all...]
H A Dt_pkgrecv.py40 import pkg.manifest as manifest namespace
271 """Given an FMRI, return the path to its manifest in our
288 """Given an FMRI, return the unsorted manifest contents from our
293 mf = pkg.manifest.Manifest()
357 # Next, load the manifest.
359 mpath = os.path.join(basedir, "manifest")
361 m = manifest.Manifest()
403 old = orepo.manifest(f)
404 new = os.path.join(self.tempdir, f.get_dir_path(), "manifest")
[all...]
/pkg/src/modules/client/
H A Dpkgplan.py39 import pkg.manifest as manifest namespace
113 "actions": pkg.manifest.ManifestDifference,
124 self.__destination_mfst = manifest.NullFactoredManifest
127 self.__origin_mfst = manifest.NullFactoredManifest
129 self.actions = manifest.ManifestDifference([], [], [])
149 assert obj.__origin_mfst == manifest.NullFactoredManifest
150 assert obj.__destination_mfst == manifest.NullFactoredManifest
182 obj.__origin_mfst = manifest.NullFactoredManifest
183 obj.__destination_mfst = manifest
[all...]
H A Dquery_parser.py28 import pkg.manifest as manifest namespace
267 and returns a path to the manifest for that fmri.
337 search_dict = manifest.Manifest.search_dict(path,
399 search_dict = manifest.Manifest.search_dict(manf,
/pkg/src/modules/flavor/
H A Dsmf_manifest.py37 # find SMF manifest files
38 manifest_locations = [ "lib/svc/manifest", "var/svc/manifest" ]
42 # maps SMF fmris to the manifest files that defined them
48 manifest = None variable in class:SMFManifestDependency
53 self.manifest = path
83 """Clear our manifest caches. This is primarily provided for
135 # instance as each manifest gets added.
227 file is an SMF manifest, we return a list of SmfManifestDependencies
230 that were contained in the SMF manifest tha
[all...]
/pkg/src/modules/bundle/
H A DSolarisPackageDirBundle.py69 # Want to access the manifest as a dict.
71 for p in self.pkg.manifest:
80 for p in self.pkg.manifest:
121 for p in self.pkg.manifest:
/pkg/src/modules/
H A Dsysvpkg.py56 XXX This class should probably disappear once pkg.manifest? is a bit
194 self.manifest = self.readPkgmapFile()
293 for obj in pkg.manifest:

Completed in 69 milliseconds

123