/pkg/src/tests/cli/ |
H A D | t_pkgsign.py | 81 add dir mode=0755 owner=root group=bin path=/bin 82 add dir mode=0755 owner=root group=bin path=/bin/example_dir 83 add dir mode=0755 owner=root group=bin path=/usr/lib/python2.7/vendor-packages/OpenSSL 84 add file tmp/example_file mode=0555 owner=root group=bin path=/bin/example_path 101 add dir mode=0755 owner=root group=bin path=/bin 108 add dir mode=0755 owner=root group=bin path=/bin variant.arch=sparc 109 add dir mode=0755 owner=root group=bin path=/baz variant.arch=i386 115 add file tmp/example_file mode=0444 owner=root group=bin path=usr/share/doc/i386_doc.txt facet.doc=true variant.arch=i386 116 add file tmp/example_file mode=0444 owner=root group=bin path=usr/share/doc/sparc_devel.txt facet.devel=true variant.arch=sparc 121 add file tmp/example_file mode=0755 owner=root group=bin path [all...] |
H A D | t_pkgsend.py | 85 # Now build action objects from expected data indexed by path. 90 if a.attrs["path"] in exp_actions: 91 raise RuntimeError(a.attrs["path"]) 93 exp_actions[a.attrs["path"]] = a 108 exp = exp_actions[a.attrs["path"]] 140 add dir mode=0755 owner=root group=bin path=/bin 170 junk_repo = os.path.join(self.test_root, "junk-repo") 178 self.pkgsend(os.path.join(dfurl, "nochance"), 204 self.pkgsend(url, "add file bin/ls path=/bin/ls", 216 imaginary_file = os.path [all...] |
H A D | t_pkgmogrify.py | 49 dir group=bin mode=0755 owner=root path=usr/X11 50 dir group=bin mode=0755 owner=root path=usr/X11/bin 51 dir group=bin mode=0755 owner=root path=usr/X11/include 52 dir group=bin mode=0755 owner=root path=usr/X11/include/X11 59 owner=root path=usr/X11/bin/xkbprint 60 file NOHASH group=bin mode=0755 owner=root path=usr/X11/bin/Xserver 61 file NOHASH group=bin mode=0755 owner=root path=usr/X11/bin/bdftopcf 62 link path=usr/X11/lib/libXdmcp.so target=./libXdmcp.so.6 63 link path=usr/X11/lib/libXevie.so target=./libXevie.so.1 64 link path [all...] |
H A D | t_lock.py | 68 lfpath = os.path.join(img.imgdir, "lock") 69 self.assertTrue(os.path.exists(lfpath)) 76 self.assertTrue(os.path.exists(lfpath)) 90 self.assertTrue(os.path.exists(lfpath)) 143 lfpath = os.path.join(img.imgdir, "lock") 144 self.assertTrue(os.path.exists(lfpath)) 179 lfpath = os.path.join(img.imgdir, "lock") 180 self.assertTrue(os.path.exists(lfpath)) 185 tmp_file = os.path.join(img.imgdir, "test_symlink")
|
H A D | t_pkgfmt.py | 52 dir path=boot group=sys 53 $(i386_ONLY)dir path=boot/acpi group=sys 54 $(i386_ONLY)dir path=boot/acpi/tables group=sys 55 dir path=boot/solaris group=sys 56 dir path=boot/solaris/bin group=sys 57 dir path=etc group=sys 58 dir path=etc/crypto group=sys 59 dir path=kernel group=sys 60 $(i386_ONLY)dir path=kernel/$(ARCH64) group=sys 61 dir path [all...] |
/pkg/src/util/apache2/sysrepo/ |
H A D | sysrepo_p5p.py | 57 """An exception thrown when a client requests a path within a p5p file 59 def __init__(self, path): 60 self.path = path 63 return "Unknown path: {0}".format(self.path) 80 def __init__(self, path): 81 self.path = path 84 return "Missing p5p archive: {0}".format(self.path) [all...] |
/pkg/src/modules/actions/ |
H A D | legacy.py | 56 return [os.path.normpath(os.path.join("var/sadm/pkg", 64 pkgdir = os.path.join(pkgplan.image.get_root(), "var/sadm/pkg", 67 if not os.path.isdir(pkgdir): 70 pkginfo = os.path.join(pkgdir, "pkginfo") 115 open(os.path.join(pkgplan.image.get_root(), 129 lfile = os.path.join(pkgdir, "pkginfo.{0:d}".format(i)) 146 pkgdir = os.path.join(img.get_root(), "var/sadm/pkg", 151 if not os.path.isdir(pkgdir): 157 if not os.path [all...] |
H A D | file.py | 65 key_attr = "path" 66 unique_attrs = "path", "mode", "owner", "group", "preserve", "sysattr" 68 namespace_group = "path" 82 path = orig.get_installed_path(pkgplan.image.get_root()) 83 if os.path.isfile(path) and self.in_use(path): 84 raise api_errors.FileInUseException(path) 87 path = self.get_installed_path(pkgplan.image.get_root()) 88 if os.path [all...] |
H A D | generic.py | 194 It can be a string which is the path to the file, a function 203 if not os.path.exists(data): 206 path=data) 207 elif os.path.isdir(data): 210 path=data) 222 e, path=data) 579 'path'. Token is the token to be searched against. Full value 595 """Given an image root, return the installed path of the action 596 if it has a installable payload (i.e. 'path' attribute).""" 598 return os.path [all...] |
/pkg/src/modules/ |
H A D | pkggzip.py | 57 def test_is_pkggzipfile(path): 58 f = open(path, "rb")
|
H A D | p5p.py | 110 'name' should be the absolute path of the file to use when 122 assert os.path.isabs(name) 157 """The absolute path of the archive index file.""" 310 """'pathname' is the absolute path of the archive file to create 324 assert os.path.isabs(pathname) 343 assert not os.path.exists(self.__arc_name) 418 path=self.__temp_dir, 419 filename=os.path.basename(idxfn)) 530 operations, and return its absolute path. The temporary 541 and returns a file object for it and its absolute path [all...] |
/pkg/src/ |
H A D | setup.py | 82 pwd = os.path.normpath(sys.path[0]) 96 dist_dir = os.path.normpath(os.path.join(pwd, os.pardir, "proto", "dist_" + arch)) 97 build_dir = os.path.normpath(os.path.join(pwd, os.pardir, "proto", "build_" + arch)) 101 root_dir = os.path.normpath(os.path.join(pwd, os.pardir, "proto", "root_" + arch)) 102 pkgs_dir = os.path.normpath(os.path [all...] |
/pkg/src/modules/bundle/ |
H A D | SolarisPackageDirBundle.py | 45 filename = os.path.normpath(filename) 51 # map the path name to the SVR4 class it belongs to and 77 yield act.attrs.get("path"), act 83 yield act.attrs.get("path"), act 86 def j(path): 87 return os.path.join(self.pkg.basedir, path) 92 fpath = os.path.join(self.filename, "archive", klass) 95 if os.path.exists(fpath + x): 104 yield act.attrs.get("path"), ac [all...] |
H A D | SolarisPackageDatastreamBundle.py | 50 filename = os.path.normpath(filename) 55 # map the path name to the SVR4 class it belongs to and 90 yield act.attrs.get("path"), act 110 path = d + p.pathname 111 if (p.type == "d" and path not in self.pkg.datastream) or \ 113 yield path, (self.pkgmap, None, path) 128 for path, data in self._walk_bundle(): 137 def action(self, pkgmap, ci, path): 139 mapline = pkgmap[path] [all...] |
H A D | __init__.py | 69 def get_action(self, path): 70 """Return the first action that matches the provided path or 75 npath = apath.lstrip(os.path.sep) 76 if path == npath:
|
/pkg/src/modules/file_layout/ |
H A D | file_manager.py | 95 "directories containing it.").format(self.path) 120 The "root" parameter is a path to the directory to manage. 141 """Find the path to the file with name hashval. 146 will ensure that a file exists at the returned path.""" 153 cur_full_path = os.path.join(self.root, cur_path) 159 if not check_existence or os.path.exists(cur_full_path): 170 return a path or an open file handle.""" 181 p_sdir = os.path.dirname(cur_full_path) 192 p_ddir = os.path.dirname( 194 if os.path [all...] |
/pkg/src/modules/flavor/ |
H A D | script.py | 37 """Exception that is raised when a file uses a relative path for the 47 "a relative path.").format(**vars(self)) 53 def __init__(self, action, path, pkg_vars, proto_dir): 54 base_names = [os.path.basename(path)] 55 paths = [os.path.dirname(path)] 90 # first part of string is path (removes options) 94 if not os.path.isabs(p): 100 p = os.path [all...] |
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...] |
H A D | base.py | 53 return _("Couldn't find '{hash}' needed for '{path}'" 56 path=self.file_path, dirs="\n".join( 59 return _("Couldn't find '{path}' in any of the " 61 path=self.file_path, 179 """Return the path to the file that generated this dependency. 182 return self.action.attrs["path"] 212 def make_relative(path, dir): 213 """If 'path' is an absolute path, make it relative to the 214 directory path give [all...] |
/pkg/src/tests/api/ |
H A D | t_unix_usergrp.py | 43 os.makedirs(os.path.join(self.test_root, "etc")) 46 if not os.path.exists("/etc/group"): 49 grpfile = open(os.path.join(self.test_root, "etc", "group"), "w") 75 if not os.path.exists("/etc/group"): 90 if not os.path.exists("/etc/group"): 93 grpfile = open(os.path.join(self.test_root, "etc", "group"), "w") 128 if not os.path.exists("/etc/group"): 131 grpfile = open(os.path.join(self.test_root, "etc", "group"), "w") 157 if not os.path.exists("/etc/passwd"): 160 passwd = open(os.path [all...] |
H A D | t_pkg_api_install.py | 62 add dir mode=0755 owner=root group=bin path=/lib 63 add file tmp/libc.so.1 mode=0555 owner=root group=bin path=/lib/libc.so.1 timestamp="20080731T024051Z" 69 add file tmp/libc.so.1 mode=0555 owner=root group=bin path=/lib/libc.so.1 75 add dir mode=0755 owner=root group=bin path=/bin 76 add file tmp/cat mode=0550 owner=root group=bin path=/bin/cat 82 add dir mode=0755 owner=root group=bin path=/bin 83 add file tmp/cat mode=0555 owner=root group=bin path=/bin/cat 89 add dir mode=0755 owner=root group=bin path=/bin 90 add file tmp/cat mode=0555 owner=root group=bin path=/bin/cat 100 add dir mode=0755 owner=root group=bin path [all...] |
H A D | t_p5p.py | 63 add dir mode=0755 owner=root group=bin path=lib 64 add dir mode=0755 owner=root group=bin path=usr 65 add dir mode=0755 owner=root group=bin path=usr/bin 66 add dir mode=0755 owner=root group=bin path=usr/local 67 add dir mode=0755 owner=root group=bin path=usr/local/bin 68 add dir mode=0755 owner=root group=bin path=usr/share 69 add dir mode=0755 owner=root group=bin path=usr/share/doc 70 add dir mode=0755 owner=root group=bin path=usr/share/doc/foo 71 add dir mode=0755 owner=root group=bin path=usr/share/man 72 add dir mode=0755 owner=root group=bin path [all...] |
H A D | t_indexer.py | 48 ind._sort_fh = open(os.path.join(ind._tmp_dir, 91 fs = os.stat(os.path.join(ind._tmp_dir, file)) 102 self.assertTrue(os.stat(os.path.join(ind._tmp_dir , "sort.0")).st_size == 0) 108 self.assertTrue(len(open(os.path.join(ind._tmp_dir,
|
H A D | t_pkgtarfile.py | 48 filepath = os.path.join(cpath, "foo/bar") 50 create_path = os.path.join(filepath, filename) 57 self.tarfile = os.path.join(self.tpath, "test.tar") 74 extractpath = os.path.join(self.tpath, "foo/bar")
|
/pkg/src/modules/portable/ |
H A D | os_unix.py | 197 passwd_file = os.path.join(dirpath, "etc/passwd") 228 group_file = os.path.join(dirpath, "etc/group") 256 def chown(path, owner, group): 257 return os.chown(path, owner, group) 265 if e.errno != errno.EXDEV or not os.path.isfile(src): 273 dir=os.path.dirname(dst)) 287 def remove(path): 288 os.unlink(path) 293 def split_path(path): 294 return path [all...] |