/pkg/src/modules/client/ |
H A D | firmware.py | 27 import os.path namespace 56 args = [os.path.join(firmware_dir, which)]
|
H A D | history.py | 392 """'root_dir' should be the path of the directory where the 418 def path(self): member in class:History 422 return os.path.join(self.root_dir, "history") 436 return os.path.join(self.path, 448 rpath = os.path.join(self.root_dir, 550 """Loads the history from a file located in self.path/history/ 565 pathname = os.path.join(self.path, filename) 674 a file in self.path/{operation_start_tim [all...] |
H A D | imageconfig.py | 29 import os.path namespace 82 CA_PATH = "ca-path" 85 CA_PATH: os.path.join(os.path.sep, "etc", "openssl", "certs"), 87 "trust-anchor-directory": os.path.join("etc", "certs", "CA"), 457 dafile = os.path.join(os.path.dirname(self.target), DA_FILE) 458 if os.path.exists(dafile): 752 if os.path.exists(os.path [all...] |
/pkg/src/modules/lint/ |
H A D | base.py | 28 import os.path namespace 298 if os.path.exists(self.classification_path): 317 "unable to parse data file {path}: " 319 path=self.classification_path,
|
H A D | pkglint_manifest.py | 29 import os.path namespace 62 name = os.path.basename(manifest.fmri.get_name()) 360 lastname = os.path.basename(manifest.fmri.get_name()) 594 "section {section}: {ref_cats} from {path}").format( 597 path=self.classification_path, 665 if "path" not in action.attrs: 668 path = action.attrs["path"] 670 if not path.endswith(".xml"): 673 if not (path [all...] |
H A D | pkglint_action.py | 31 import os.path namespace 48 # dictionaries mapping path names to a list of tuples that are 49 # installing to that path name. Each tuple represents a single 52 # to that path. 53 # eg. pathdb[path] = [(fmri, action), (fmri, action) ... ] 174 seed_dict(manifest, "path", self.ref_paths) 195 seed_dict(manifest, "path", self.lint_paths) 212 seed_dict(manifest, "path", self.lint_paths) 241 self.dup_attr_check(["file", "license"], "path", self.ref_paths, 305 ("path", sel [all...] |
/pkg/src/modules/flavor/ |
H A D | smf_manifest.py | 27 import os.path namespace 50 def __init__(self, action, path, pkg_vars, proto_dir): 53 self.manifest = path 55 if isinstance(path, six.string_types): 56 base_names = [os.path.basename(path)] 57 paths = [os.path.dirname(path)] 59 elif isinstance(path, tuple): 68 for p in path] [all...] |
/pkg/src/tests/cli/ |
H A D | t_pkglint.py | 31 import os.path namespace 479 file /etc/passwd path=etc/passwd group=sys mode=0644 owner=root preserve=true 480 dir group=sys mode=0755 owner=root path=etc 493 file /etc/motd group=sys mode=0644 owner=root path=etc/motd 494 dir group=sys mode=0755 owner=root path=etc 495 dir group=sys mode=0755 owner=root path=etc 508 file /etc/group group=sys mode=0644 owner=root path=etc/group 509 dir group=sys mode=0755 owner=root path=etc 522 self.cache_dir = os.path.join(self.test_root, "pkglint-cache") 548 if os.path [all...] |
H A D | t_sysrepo.py | 37 import os.path namespace 66 self.default_sc_runtime = os.path.join(self.test_root, 68 self.default_sc_conf = os.path.join(self.default_sc_runtime, 208 add file tmp/sample_file mode=0444 owner=root group=bin path=/usr/bin/sample 213 add file tmp/sample_file mode=0444 owner=root group=bin path=/usr/bin/new 232 self.default_sc_runtime = os.path.join(self.test_root, 238 self.alt_sc_runtime = os.path.sep.join([self.test_root, 240 self.default_sc_conf = os.path.join(self.default_sc_runtime, 242 self.alt_sc_conf = os.path.join(self.alt_sc_runtime, 244 self.default_sc_p5s = os.path [all...] |
/pkg/src/modules/actions/ |
H A D | _common.c | 93 char *path = NULL; local 203 if ((path_attr = PyDict_GetItemString(attrs, "path")) == NULL) { 208 if ((path = PyBytes_AsString(path_attr)) != NULL) { 209 if (path[0] == '/') { 216 if (PyDict_SetItemString(attrs, "path", 230 /* path attribute is not a string. */
|
/pkg/src/tests/api/ |
H A D | t_pkglint.py | 30 import os.path namespace 80 hardlink path=usr/sbin/prtdiag target=../../usr/lib/platexec variant.arch=sparc 81 file 1d5eac1aab628317f9c088d21e4afda9c754bb76 chash=43dbb3e0bc142f399b61d171f926e8f91adcffe2 elfarch=i386 elfbits=64 elfhash=64c67b16be970380cd5840dd9753828e0c5ada8c group=sys mode=2755 owner=root path=usr/sbin/prtdiag pkg.csize=5490 pkg.size=13572 variant.arch=i386 83 dir path=usr mode=991 84 dir path=usr/foo mode=457 85 dir path=usr/foo/other mode=222 86 file NOHASH path=usr/foo/file mode=0112 owner=root group=staff 87 file NOHASH path=usr/foo/bar mode=01 owner=root group=staff 90 # ERROR pkglint.dupaction008 path usr/sbin/prtdiag is delivered by multiple action types 92 # ERROR pkglint.dupaction001.2 path us [all...] |
/pkg/src/ |
H A D | depot.py | 43 # The default path for static and other web content. 71 import os.path namespace 166 -d inst_root The file system path at which the server should find its 182 --content-root The file system path to the directory containing the 195 --image-root The path to the image whose file information will be 227 exec:/path/to/program, smf, or an SMF FMRI. The 238 --writable-root The path to a directory to which the program has write 279 content_root = os.path.join(os.environ['PKG_HOME'], 408 scheme, netloc, path, params, query, \ 426 urlunparse((scheme, netloc, path, [all...] |
/pkg/src/modules/server/ |
H A D | repository.py | 32 import os.path namespace 132 return _("The specified path does not contain a valid " 134 return _("The path '{0}' does not contain a valid package " 366 return _("Quarantined path already exists.") 431 self.__lockfile = lockfile.LockFile(os.path.join( 473 tempdir = os.path.normpath(os.path.join(root, "tmp")) 535 if self.catalog_root and os.path.exists(self.catalog_root): 540 """Helper method that takes the full path to the package 545 f = fmri.PkgFmri(unquote(os.path [all...] |
/pkg/src/zoneproxy/zoneproxyd/ |
H A D | zoneproxyd.c | 1067 char path[PATH_MAX]; local 1073 n = snprintf(path, PATH_MAX, CTFS_ROOT "/%s/%d/%s", type, ctid, file); 1074 if (n >= sizeof (path)) { 1079 fd = open(path, oflag); 1113 do_fattach(int door, char *path, boolean_t detach_only) argument 1117 (void) fdetach(path); 1118 (void) unlink(path); 1122 fd = open(path, O_CREAT|O_RDWR, 0600); 1125 if (fattach(door, path) != 0) 1137 char *path local [all...] |
/pkg/src/modules/client/linkedimage/ |
H A D | common.py | 85 PROP_CURRENT_PATH = "li-current-path" 89 PROP_PATH = "li-path" 90 PROP_PATH_TRANSFORM = "li-path-transform" 123 PATH_PFACETS = os.path.join(__DATA_DIR, "linked_pfacets") 124 PATH_PPKGS = os.path.join(__DATA_DIR, "linked_ppkgs") 125 PATH_PROP = os.path.join(__DATA_DIR, "linked_prop") 126 PATH_PUBS = os.path.join(__DATA_DIR, "linked_ppubs") 235 """Called when the path to the image that we're operating on 246 image path and the current one.""" 477 # if the image has a path setu 1201 def path(self): member in class:LinkedImage [all...] |