Searched refs:portable (Results 1 - 25 of 77) sorted by relevance

1234

/pkg/src/tests/api/
H A Dt_unix_usergrp.py37 import pkg.portable as portable namespace
62 self.assertRaises(KeyError, portable.get_group_by_name,
66 portable.get_group_by_name("root", self.test_root, True))
68 portable.get_group_by_name("gk", self.test_root, True))
70 self.assertRaises(KeyError, portable.get_name_by_gid,
78 self.assertRaises(KeyError, portable.get_group_by_name,
84 grpname = portable.get_name_by_gid(0, self.test_root, True)
86 portable.get_group_by_name(grpname, self.test_root, True))
108 portable
[all...]
H A Dt_sysattr.py30 import pkg.portable as portable namespace
55 portable.remove(self.test_fn)
60 supported = portable.get_sysattr_dict()
71 if portable.osname != "sunos":
85 portable.remove(self.test_fn)
86 portable.remove(self.test_fn2)
92 self.assertRaises(TypeError, portable.fsetattr, self.test_fn,
94 self.assertRaises(ValueError, portable.fsetattr, self.test_fn,
96 self.assertRaises(ValueError, portable
[all...]
H A Dt_plat.py38 import pkg.portable.util as util namespace
39 import pkg.portable as portable namespace
44 portable.get_isainfo()
45 portable.get_release()
46 portable.get_platform()
51 self.assertTrue(portable.is_admin())
53 self.assertTrue(not portable.is_admin())
72 portable.rename(path1, path2)
83 import pkg.portable namespace
126 import pkg.portable.os_windows as os_windows namespace
[all...]
H A Dt_pkgtarfile.py38 import pkg.portable as portable namespace
69 if portable.is_admin() or portable.util.get_canonical_os_type() == "windows":
H A Dt_imageconfig.py38 import pkg.portable as portable namespace
H A Dt_elf.py34 import pkg.portable namespace
76 arch = pkg.portable.get_isainfo()[0]
H A Dt_history.py44 import pkg.portable as portable namespace
77 self.__userid = str(portable.get_userid())
78 self.__username = str(portable.get_username())
H A Dt_p5p.py44 import pkg.portable as portable namespace
103 portable.copyfile(
318 portable.copyfile(repo.manifest(self.foo), foo_path)
321 portable.copyfile(repo.manifest(self.signed), signed_path)
324 portable.copyfile(repo.manifest(self.quux), quux_path)
332 portable.copyfile(
938 portable.copyfile(arc_path, bad_arc_path)
955 portable.copyfile(arc_path, bad_arc_path)
973 portable
[all...]
/pkg/src/tests/cli/
H A Dt_origin_cpu.py33 import pkg.portable as portable namespace
124 if portable.osname != "sunos":
H A Dt_origin_fw.py33 import pkg.portable as portable namespace
114 if portable.osname != "sunos":
H A Dt_pkgfmt.py33 import pkg.portable as portable namespace
40 import pkg.portable namespace
1308 portable.copyfile(original, man)
1312 pkg.portable.copyfile(man, man2)
1327 portable.copyfile(original, man)
1335 portable.copyfile(original, man)
H A Dt_pkg_R_option.py31 import pkg.portable as portable namespace
99 if portable.osname != "sunos":
H A Dt_pkg_verify.py31 import pkg.portable as portable namespace
103 portable.copyfile("/usr/bin/ls", os.path.join(self.test_root,
168 portable.remove(os.path.join(self.get_img_path(), "usr", "bin",
212 portable.remove(fpath)
454 if portable.osname != "sunos":
476 portable.remove(fpath)
477 portable.copyfile(os.path.join(self.test_root, "bobcat"), fpath)
522 portable.remove(fpath)
H A Dt_fix.py33 import pkg.portable as portable namespace
320 ubin = portable.get_user_by_name("bin", None, False)
321 groot = portable.get_group_by_name("root", None, False)
461 portable.remove(fpath)
462 portable.copyfile(os.path.join(self.test_root, "amber1"),
754 portable.remove(fpath)
755 portable.copyfile(os.path.join(self.test_root, "amber1"),
H A Dt_pkg_revert.py33 import pkg.portable as portable namespace
124 ubin = portable.get_user_by_name("bin", None, False)
125 groot = portable.get_group_by_name("root", None, False)
H A Dt_https.py41 import pkg.portable as portable namespace
112 portable.rename(opath, npath)
125 portable.rename(npath, opath)
326 portable.copyfile(
/pkg/src/modules/file_layout/
H A Dfile_manager.py47 import pkg.portable as portable namespace
186 portable.rename(cur_full_path,
216 portable.rename(cur_full_path,
255 portable.rename(src_path, cur_full_path)
266 portable.rename(src_path, dest_full_path)
341 portable.remove(cur_full_path)
/pkg/src/modules/client/
H A Dfirmware.py33 import pkg.portable as portable namespace
70 if portable.osname != "sunos" and key not in self._cache:
/pkg/src/modules/actions/
H A Dfile.py47 import pkg.portable as portable namespace
77 if portable.ostype == "windows":
268 portable.chown(temp, owner, group)
277 portable.rename(final_path, old_path)
285 portable.rename(temp, final_path)
311 sattrs[0] not in portable.get_sysattr_dict():
318 portable.fsetattr(final_path, arg)
499 sattrs[0] not in portable.get_sysattr_dict():
501 set_attrs = portable
[all...]
H A Ddirectory.py35 import pkg.portable as portable namespace
159 if not portable.is_admin():
201 portable.chown(path, owner, group)
H A Dlicense.py41 import pkg.portable as portable namespace
122 portable.chown(path, owner, group)
H A Dgeneric.py48 import pkg.portable as portable namespace
630 pathlist = portable.split_path(path)
635 pathlist[0] = portable.get_root(path)
681 portable.chown(path, uid, gid)
707 portable.chown(p, fs.st_uid, fs.st_gid)
720 portable.chown(path, uid, gid)
1096 portable.remove(path)
/pkg/src/modules/portable/
H A Dos_sunos.py40 from pkg.portable import ELF, EXEC, PD_LOCAL_PATH, UNFOUND, SMF_MANIFEST
/pkg/src/modules/publish/
H A Ddependencies.py48 import pkg.portable as portable namespace
370 # Dictionary which maps codes from portable.get_file_type to the functions which
373 portable.ELF: elf_dep.process_elf_dependencies,
374 portable.EXEC: script.process_script_deps,
375 portable.SMF_MANIFEST: smf_manifest.process_smf_manifest_deps,
376 portable.UNFOUND: no_such_file
397 'pkg.depend.runpath' (portable.PD_RUN_PATH)
410 portable.get_file_type to a file which produced that filetype.
421 file_types = portable
[all...]
/pkg/src/modules/flavor/
H A Dscript.py33 from pkg.portable import PD_LOCAL_PATH, PD_PROTO_DIR

Completed in 214 milliseconds

1234