/pkg/src/tests/api/ |
H A D | t_unix_usergrp.py | 37 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 D | t_sysattr.py | 30 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 D | t_plat.py | 38 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 D | t_pkgtarfile.py | 38 import pkg.portable as portable namespace 69 if portable.is_admin() or portable.util.get_canonical_os_type() == "windows":
|
H A D | t_imageconfig.py | 38 import pkg.portable as portable namespace
|
H A D | t_elf.py | 34 import pkg.portable namespace 76 arch = pkg.portable.get_isainfo()[0]
|
H A D | t_history.py | 44 import pkg.portable as portable namespace 77 self.__userid = str(portable.get_userid()) 78 self.__username = str(portable.get_username())
|
H A D | t_p5p.py | 44 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 D | t_origin_cpu.py | 33 import pkg.portable as portable namespace 124 if portable.osname != "sunos":
|
H A D | t_origin_fw.py | 33 import pkg.portable as portable namespace 114 if portable.osname != "sunos":
|
H A D | t_pkgfmt.py | 33 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 D | t_pkg_R_option.py | 31 import pkg.portable as portable namespace 99 if portable.osname != "sunos":
|
H A D | t_pkg_verify.py | 31 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 D | t_fix.py | 33 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 D | t_pkg_revert.py | 33 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 D | t_https.py | 41 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 D | file_manager.py | 47 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 D | firmware.py | 33 import pkg.portable as portable namespace 70 if portable.osname != "sunos" and key not in self._cache:
|
/pkg/src/modules/actions/ |
H A D | file.py | 47 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 D | directory.py | 35 import pkg.portable as portable namespace 159 if not portable.is_admin(): 201 portable.chown(path, owner, group)
|
H A D | license.py | 41 import pkg.portable as portable namespace 122 portable.chown(path, owner, group)
|
H A D | generic.py | 48 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 D | os_sunos.py | 40 from pkg.portable import ELF, EXEC, PD_LOCAL_PATH, UNFOUND, SMF_MANIFEST
|
/pkg/src/modules/publish/ |
H A D | dependencies.py | 48 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 D | script.py | 33 from pkg.portable import PD_LOCAL_PATH, PD_PROTO_DIR
|